Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
badfeather opened this issue Mar 4, 2021 · 0 comments
Open
Labels
enhancement User is requesting an enhancement/new feature

Comments

@badfeather
Copy link

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

@dkniffin dkniffin added the enhancement User is requesting an enhancement/new feature label Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement User is requesting an enhancement/new feature
Projects
None yet
Development

No branches or pull requests

2 participants