-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[React] Dialog
closes when I release the mouse click outside of the dialog
#1646
Comments
Dialog
closes when I release the mouse click outside of the dialog
I thought I was going crazy when I recently started noticing this. This is definitely new, unintended behavior. It is also present on the Popover component. |
Hey! Thank you for your bug report! This has been fixed by #1667, and will be available in the next release. You can try it by using our insiders build:
|
This is a pretty serious bug, when will the next release be? A work-around is to manage the closing yourself; when click on outside (backdrop), and pressing ESC key. |
I am facing similar issue when I access Issue recreation: Codesandbox Can you please once have a look and provide some suggestions or workarounds? |
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v1.6.5
What browser are you using?
Chrome, Safari
Reproduction URL
https://headlessui.com/react/dialog
Describe your issue
When I start selecting text and dragging my cursor (left click down) inside the dialog but then I release it (left click up) outside the dialog, the dialog closes. I expect the dialog to stay open because I didn't left-click (or tap) outside the modal. See video below
headless-ui-dialog-drag-close.mov
The text was updated successfully, but these errors were encountered: