(BUG) [React] Can't click on anything after closing Dialog component
See original GitHub issueWhat 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.
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)
Issue Analytics
- State:
- Created a year ago
- Reactions:7
- Comments:5
Top Results From Across the Web
OnClick Listeners not working after closing full-screen dialog ...
It looks like the problem lies in your TransitionComponent , you're passing a new instance of it to your Dialog each time you...
Read more >Dialog (Modal) - Headless UI
Clicking outside the Dialog.Panel component will close the dialog, so keep that in mind when deciding which styles to apply to which elements....
Read more >FIX: Mouse Moves but Cannot Click (Solved) - wintips.org
The "Mouse Moves but Cannot Click" problem can appear suddenly, ... So, proceed and replace the mouse, but shutdown your PC first (press...
Read more >Detect click outside React component - Material UI - MUI
The Click-Away Listener component detects when a click event happens outside of its child element.
Read more >Error Handling in React 16 – React Blog
In the past, JavaScript errors inside components used to corrupt React's internal state and cause it to emit cryptic errors on next renders....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
.https://github.com/tailwindlabs/headlessui/issues/1705 it seems these are similar issue