-
Hi team, I was recently implementing a side modal and attempting to have a popover appear not only when you press the close button, but also on press of the escape key. In the example I made, if a user presses the close button with the form dirty, we open an alert dialogue which asks if they want to save their changes or cancel them, however I have been unable to replicate this behaviour with the escape key so the form closes in a dirty and neither saved nor cancelled state. It would be great if this component had an easy way to replicate close button behaviour on Esc key press! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @hjbrown11 In theory this should be possible as there should be a Thanks |
Beta Was this translation helpful? Give feedback.
-
Small update: a |
Beta Was this translation helpful? Give feedback.
Small update: a
hideOnEsc
prop will be added in the next version of Paste Core (when this PR merges: #3297)