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

[Bug]: A Dialog is closed when clicking inside for the first time #2800

Closed
JamesKEbert opened this issue Oct 13, 2023 · 1 comment
Closed

Comments

@JamesKEbert
Copy link

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

v1.7.15 or newer

What browser are you using?

Firefox, reproduced in Chrome

Reproduction URL

https://codesandbox.io/s/tailwind-dialog-closing-on-first-click-stjw9m
Additional reproduction by @lukasvice: https://codesandbox.io/s/dialog-closing-on-first-click-vx4ftt

Describe your issue

A Dialog is unexpectedly closed when clicking inside the Dialog for the first time, subsequent clicks inside behave as expected. This bug only occurs in Dialogs that do not contain a Dialog.Title or Dialog.Description. See issue #2535 for more reports and reproductions of the issue.

@thecrypticace
Copy link
Contributor

Hey, so this was fixed by #2697 which is available in our insiders build:

npm install @headlessui/react@insiders

We don't have a a tagged release out but I believe we're aiming to tag a release sometime next week (we have some documentation work to finalize first).

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