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

Dialog/Modal: Highlighting some text is prone to close the modal accidentally #1724

Closed
PhilippSchoenauer opened this issue Jul 29, 2022 · 1 comment

Comments

@PhilippSchoenauer
Copy link

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

v1.6.6

What browser are you using?

Chrome

Reproduction URL

This happens on the official example on your website too:
https://headlessui.com/examples/react-dialog-hero

Describe your issue

If the dialog is open, and i want to highligh some text but accidentaly drag the mouse outside of the modal, it closes automatically.
This is especially cumbersome if the modal includes a form, where in this case the complete user provided input is lost.

Animation

@RobinMalfait
Copy link
Collaborator

Hey! Thank you for your bug report!
Much appreciated! 🙏

This should already have been fixes by #1667, and will be available in the next release.

You can already try it using:

  • npm install @headlessui/react@insiders.
  • npm install @headlessui/vue@insiders.

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

2 participants