Modal closes when selecting text and releasing mouse outside the modal #1925
pskrzeszewski
started this conversation in
General
Replies: 1 comment
-
|
Let me add on this that it's not just limited to text selectiion, holding left mouse button from any part of the modal then releasing the left mouse button outside the modal reproduces this. Still reproducible on the current versions of Are there any GitHub issues about this? Edit: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When a modal is open and the user selects any content inside the modal with the mouse, if the cursor leaves the modal area while still holding the mouse button and the mouse button is released outside the modal, the modal closes.
This behavior is unexpected because the modal should only close when:
Releasing the mouse after a text selection should not be interpreted as an outside click.
Steps to reproduce
Actual behavior
The modal closes.
Expected behavior
The modal should remain open.
It should only close when an intentional click outside the modal occurs, not when finishing a text selection.
Reproduction
The issue can also be reproduced directly on the documentation site:
https://flowbite-svelte.com/docs/components/modal
Environment
Beta Was this translation helpful? Give feedback.
All reactions