Micromodal icon indicating copy to clipboard operation
Micromodal copied to clipboard

When launching 2nd modal from modal, escape key closes both modals

Open badfeather opened this issue 3 years ago • 0 comments

Desired: Esc key would return you to first modal rather than closing both. Is there a workaround for this? Closing the top modal via a button with a data-custom-close attribute works as expected (closes the top modal), but the escape key closes all modals.

Codepen demo

badfeather avatar Mar 04 '21 17:03 badfeather