reactjs-popup icon indicating copy to clipboard operation
reactjs-popup copied to clipboard

Flag for "dismissing" a modal

Open gregfenton opened this issue 4 years ago • 1 comments

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!

gregfenton avatar Apr 22 '20 21:04 gregfenton

I think this is a good feature we need to implement

yjose avatar Jul 03 '20 17:07 yjose