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

Allow the modal to close when we click outside the modal content #1897

Merged
merged 2 commits into from
May 2, 2024

Conversation

ashkan117
Copy link
Contributor

With many modals when you click outside the content the modal should close. This is helpful in the scenario where you press the 'g' keyboard shortcut and want to close it. The only way we can do so right now is by clicking the 'X' on the modal. I think this makes things more consistent with standard modal UI experiences and is a nice utility to have.

assets/js/modal.js Outdated Show resolved Hide resolved
@josevalim josevalim merged commit 47e1762 into elixir-lang:main May 2, 2024
4 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants