Skip to content

preventing lost work if accidentally clicking outside of the modal #791

Answered by serifluous
elainelylee asked this question in Q&A
Discussion options

You must be logged in to vote

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).

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@TheSisb
Comment options

Answer selected by SiTaggart
Comment options

You must be logged in to vote
4 replies
@serifluous
Comment options

@pguptaDS
Comment options

@serifluous
Comment options

@pguptaDS
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants