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_autoclosable: close on highlighting text #2115

Open
rtemision opened this issue Apr 28, 2019 · 1 comment
Open

modal_autoclosable: close on highlighting text #2115

rtemision opened this issue Apr 28, 2019 · 1 comment

Comments

@rtemision
Copy link

If you start highlight text and stopping the highlighting outside of elem content then in the pointerclick event.target will be the parent node of the content element, and as a result the modal closes.

Here can be repeated: hold down mouse button and with the mouse movement highlight the text in title or input/textarea from left to right and let go of the mouse button the mouse button outside the content element - modal closes.
In Firefox, it is not always possible to repeat with input and textarea, but with simple text regularly, in Chrome - without much difference.

@rtemision
Copy link
Author

rtemision commented Apr 28, 2019

As a temporary fix, I’m comparing event.target from pointerdown and pointerup.

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