[feature] Ability to control dialog closing using Escape and overlay clicks. #530
Replies: 4 comments
-
Was just coming here to suggest the same thing! I have a dialog which is a full width slide out menu. The navbar is still visible as it has a higher z-index and contains the toggle button of the dialog. But when I click on the navbar, the dialog closes. I have passed an empty function to the onClose prop of the Dialog but that means I lose the Escape key close that I would like to keep. Thanks for the great package! |
Beta Was this translation helpful? Give feedback.
-
Same issue |
Beta Was this translation helpful? Give feedback.
-
Same issue. |
Beta Was this translation helpful? Give feedback.
-
Same issue, when trying to prevent the modal closing when users press |
Beta Was this translation helpful? Give feedback.
-
In my case, I need to prevent dialog closing when the user clicks on overlay or presses the Esc key.
It would be nice to have the ability to control that behavior.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions