Modal closes when selecting text and releasing mouse outside the modal #1925
pskrzeszewski
started this conversation in
General
Replies: 0 comments
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