react-modal-dialog
react-modal-dialog copied to clipboard
sending event for onClose
sending event object when onClose is triggered will be very helpful when a small computation is needed.
Can you specify what you mean in a PR/example of usage?
I was talking about something like this https://github.com/narendrashetty/react-modal-dialog/commit/70b4b07590393b06ec5ac1d13e9cef9440601b1f because sometimes I have certain condition based on which certain operation needs to be performed.
If i get an event
object which gives me information on what triggered the close it'll be helpful
@qimingweng Any update on the issue?
I can send a PR for the same
Hey, sorry for the long delay
Can you tell me what kind of computation you are doing with the event object? I mean I think it's a trivial change but still curious.