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] Dialog: portal DOM node isn't removed anymore #1417
Comments
In the app I'm working on (private repo) I've run into this issue using the Dialog component with transitions. I have a modal that contains a button to close the modal, the following steps will reproduce the issue:
The issue does not happen if using escape or clicking outside the dialog to close. Just to reiterate, the issue only happens when using an element inside the Dialog to close it, I thought it had something to do with my code but I did a straight copy/paste from the examples and still ran into the issue. |
I'm also experiencing this issue as well, any idea as to when it's getting fixed? |
Hey! Thank you for your bug report! This should be fixed, and will is available in the latest release. You can already try it using |
Hey @RobinMalfait , unfortunately I am still seeing this issue with 1.6.3 😞 |
@wescopeland can you create a reproduction repo and share it? The main issue that was solved in #1500 was not that the portal root was not deleted anymore, that issue is a side effect of the actual issue. In the original issues the issue was that the Dialog never unmounted and still had actual items in the portal root present. |
Hi @RobinMalfait, I am referencing the issue posted earlier in this thread:
Do we need to open a new ticket for this? At present, having a close button in a dialog and clicking it a few times causes the entire app to freeze. |
Can confirm, same issue. Clicking a close button inside the Dialog freezes the app. For now using 1.5.0 solves the issue. |
I appreciate all the "still broken" messages but can you please create an issue with a reproduction attached so that we can take a look at what's going on ❤️ |
same issue |
Locking to hopefully motivate someone to actually create a new issue with a reproduction if they run into this, otherwise we can't reproduce it and fix it 🫠 |
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v1.6.1
What browser are you using?
Chrome
Reproduction
Reproduction URL
Not Working with v1.6.1
Working with v1.5.0
Describe your issue
Since
v1.6.0
and the change regarding theDialog.Panel
component, there is a bug where the added portal DOM node isn't removed from the DOM anymore, when theDialog
component is hidden by CSS.In the sandbox i'm using tailwindUI´s sidebar template. Here is also a video demonstrating the issue.
Screen.Recording.2022-05-06.at.18.47.52.mov
Prior to
v1.6.0
it was working fine.Thx in advance for your help and support!!
The text was updated successfully, but these errors were encountered: