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

Modal is closed when click didn't initiate outside of content #1012

Open
r4cker opened this issue Dec 20, 2024 · 0 comments
Open

Modal is closed when click didn't initiate outside of content #1012

r4cker opened this issue Dec 20, 2024 · 0 comments

Comments

@r4cker
Copy link

r4cker commented Dec 20, 2024

When you click in the modal and release the click outside of it, the modal is still closed. That happend quite often when you have small modal and you go fast to select text.

They are multiple framework that suffer the same issue:

https://stackoverflow.com/questions/55732804/modal-is-closed-when-cursor-is-released-outside-the-modal-after-chrome-update-a
https://stackoverflow.com/questions/56633589/prevent-modal-from-closing-when-click-didnt-initiate-outside-of-content

sandbox : https://plnkr.co/edit/mxDLAdnrQ4p0KKyw?p=info

Expected behavior
When you click inside the modal and release the click outiside, the modal shouldn't close.

MyLl4

@r4cker r4cker changed the title Modal is closed when didn't initiate outside of content Modal is closed when click didn't initiate outside of content Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant