reactjs-popup
reactjs-popup copied to clipboard
Flag for "dismissing" a modal
To me, there is a difference between a modal being closed because of someone clicking a "save" or "close" button versus them pressing ESC or clicking outside of the dialog.
The FetchValuesFromModal story shows a manual way of detecting that a modal's "save" button was clicked. It would be helpful to get a flag passed to the onClose handler that indicates that the dialog was "dismissed" versus closed programmatically.
[If this is already possible, would be great to have an example of it]
Cheers all and keep up the great work!
I think this is a good feature we need to implement