Deny the confirmation when ESC is pressed
Closed this issue · 0 comments
gap777 commented
By default, some browsers will generate a cancel
event when ESC is pressed ; others will ignore it.
Either way, ConfirmationController#deny
is not correctly called. The result is that if you
- click a confirmed action
- press ESC to dismiss the confirmation modal/dialog
- click the confirmed action
You should see that the confirmation modal is not presented a second time.
If you attach an event listener on the dialog/modal in which the confirmation is displayed, and handle the cancel event,
you can call deny
.