[BUG] - After the Drawer component is closed, the entire page becomes unclickable
HeroUI Version
2.7.5
Describe the bug
After the Tabs component inside DrawerBody is switched and the Drawer component is closed, the entire page becomes unclickable.
Your Example Website or App
https://heroui.app/Nkp8ij9
Steps to Reproduce the Bug or Issue
- Click Open Drawer Button
- Click tab b
- Click on the Drawer Backdrop to close the Drawer.
- Click Open Drawer Button
Expected behavior
Expected to be able to reopen the Drawer component, but the click had no effect in reality.
It seems that the Backdrop element in the Drawer doesn't disappear but turns transparent and covers the entire page, causing all click events to fail.
Screenshots or Videos
https://github.com/user-attachments/assets/b6246d27-3ab5-47d2-bf1b-eb43587ede34
Operating System Version
macOS
Browser
Chrome
Hi. I was able to reproduce the errror but with a modal.
Context: The modal has a tab view inside. After I clicked on one of the tabs and I close the modal, the whole page gets unclickable.
I did a bit of research and I realize there is a div that seems the overlay of the dialog that did not get removed on the dialog close action.
Update: I realized the error happen even if I only open and close the modal.
seems not reproducible in canary branch as of today.
https://github.com/user-attachments/assets/cebf8706-0c17-4dec-bd5d-bc60f84c879c