preventing lost work if accidentally clicking outside of the modal #791
-
Because the modal allows you to close it by clicking outside of it, there's potential for lost work if you accidentally click outside of the modal. What's the recommendation on giving a chance for someone to save their work before closing out or close without saving? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hey @elainelylee ! We recommend using a browser dialog (https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm), which you could trigger when someone tries to close the modal (regardless of whether they click outside of it, press the Esc key, etc). |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hey @elainelylee ! We recommend using a browser dialog (https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm), which you could trigger when someone tries to close the modal (regardless of whether they click outside of it, press the Esc key, etc).