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
Possible bug: Dialog click outside won't work if nested #1657
Comments
Here is what i did.. Wrapped your dialog with a Transition and passed your open state to its show prop.
|
Hey! Thank you for your bug report! The problem here was that we were not accounting for nested dialogs that were closed — but instead only ones that were unmounted. This has been fixed by #1667, and will be available in the next release. You can try it by using our insiders build:
|
@thecrypticace I tried the new package and saw it fixed now. Thank you for your hard work. |
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
Describe your issue
I created a custom Modal component with Tailwindcss:
Then tried something like this:
Problem: click outside the modal won't close it. The nested modal (if opened) can still click outside to close.
I think it because the click outside events are conflicted somehow.
The text was updated successfully, but these errors were encountered: