Clicks not working after closing modals
See original GitHub issueDescription
When I close a modal, I expect to be able to click on buttons (or any interactive ui element) but I can’t click anywhere as if every element were disabled.
It seems to be due to the div with the class chakra-modal__content-container
that is still present on top.
Link to Reproduction
n/a
Steps to reproduce
No response
Chakra UI Version
2.4.4
Browser
Google Chrome 108
Operating System
- macOS
- Windows
- Linux
Additional Information
No response
Issue Analytics
- State:
- Created 9 months ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Unable to click anything after closing Bootstrap modal
The issue is because you're only hiding the modal UI, you're not clearing the overlay behind the modal which catches mouse events and...
Read more >Modal - Bootstrap
Clicking on the modal “backdrop” will automatically close the modal. Bootstrap only supports one modal window at a time. Nested modals aren't supported...
Read more >How to Close a Modal Window when users Click Outside it ...
First, we set up a click event listener on the document object. · Then we set up two ways/targets for closing the modal...
Read more >Modal dismiss button not working on click or modal.hide
Hello guys,. After I open a modal I cannot close it, nor with the dismiss button, nor with the modal('hide') method. It happens...
Read more >how to prevent closing the Modal after click a button inside a ...
Change the link button to a standard link that open the modal rathe than doing a post back. Change the JavaScript the shows...
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 FreeTop 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
Top GitHub Comments
I had two different version of framer-motion. I upgraded both to the last version (8.0.1) and it now seem to work ! Thank you!
Hi @leonard-henriquez,
What version of
framer-motion
are you using?