Idea for dialog not to close if changes within not saved? #471
Replies: 2 comments 1 reply
-
sounds like a bad idea because they user may not want to save the edits but just close the dialog (after confirming changes will be lost) |
Beta Was this translation helpful? Give feedback.
-
While I personally dislike this pattern, I understand that there are use cases where it may be necessary. To facilitate this, I've removed the If you cancel the CleanShot.2021-06-21.at.09.42.30.mp4Note that this will not prevent the dialog from closing when toggling the You can preview this change in the The same change was applied to |
Beta Was this translation helpful? Give feedback.
-
Hi @claviska
since cancelling of
sl-show
andsl-hide
is no longer possible with beta.42 I would to know how I could handle following usecase:sl-overlay-dismiss
event to prevent closing the dialog by a click outsidesl-hide
by preventing the click on the custom close button in the footer, until user confirms his decissionclose-button
within the dialog header?Any legit ideas?
Hide
close-button
with CSS, hide the header?Thanks and have a nice weekend
Beta Was this translation helpful? Give feedback.
All reactions