Give Vibe Coded Dialogs a Clear Escape
@prranitarora▲ 10 net votes
A modal or confirmation dialog should make its close or cancel route obvious and predictable. This lets someone inspect an option without feeling trapped in the interaction.
1 COMMENT
Native
<dialog>closes on Escape by default and fires a cancelablecancelevent first. CallpreventDefault()on it only when the dialog must not be dismissed that way. Other platform gotchas welcome in the comments.