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) [React] Can't click on anything after closing Dialog component #1638

Closed
Blaumaus opened this issue Jul 2, 2022 · 5 comments · Fixed by #1803
Closed

(BUG) [React] Can't click on anything after closing Dialog component #1638

Blaumaus opened this issue Jul 2, 2022 · 5 comments · Fixed by #1803

Comments

@Blaumaus
Copy link

Blaumaus commented Jul 2, 2022

What package within Headless UI are you using?
@headlessui/react

What version of that package are you using?
v1.6.5, but this bug seems to be present since v1.6.3

What browser are you using?
Firefox

Reproduction URL
https://github.com/Blaumaus/headless-dialog-bug

Describe your issue
When I open the Dialog and close it, I can't click on anything as the component is still present in the DOM tree, but with an empty content.
image

Also there is this warning in the console - There are no focusable elements inside the <FocusTrap />.

UI Demonstration:
(same issue is present on the test repository I provided, the demos are used as a real-world example recorded before)

headless-dialog-bug-2022-07-02_22.39.50.mp4
@Blaumaus Blaumaus changed the title Can click on anything after closing Dialog component (BUG) [React] Can click on anything after closing Dialog component Jul 2, 2022
@mohammadshariat
Copy link

I have this problem too and what can we do for solve it ?

@alexandereneroth
Copy link

alexandereneroth commented Jul 11, 2022

I've had the same issue for months now, but I've only seen it specifically on my Android phone after closing the modal while the on screen keyboard is showing 🤷

@jstnmthw
Copy link

jstnmthw commented Jul 13, 2022

I am experiencing this as well. What I've noticed is, everything is invisible but I can still click the form inputs that I set inisde my dialog (even though they're invisible).

@tianyingchun
Copy link

#1705
it seems these are similar issue

@Blaumaus Blaumaus changed the title (BUG) [React] Can click on anything after closing Dialog component (BUG) [React] Can't click on anything after closing Dialog component Jul 24, 2022
@RobinMalfait
Copy link
Collaborator

This should be fixed by #1803, and will be available in the next release.

You can already try it using npm install @headlessui/react@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

Successfully merging a pull request may close this issue.

6 participants