nextui icon indicating copy to clipboard operation
nextui copied to clipboard

[BUG] - After the Drawer component is closed, the entire page becomes unclickable

Open haydenull opened this issue 1 year ago • 3 comments

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

  1. Click Open Drawer Button
  2. Click tab b
  3. Click on the Drawer Backdrop to close the Drawer.
  4. 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

haydenull avatar Mar 17 '25 09:03 haydenull

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.

Image

jonathanhirint avatar Mar 18 '25 11:03 jonathanhirint

seems not reproducible in canary branch as of today.

https://github.com/user-attachments/assets/cebf8706-0c17-4dec-bd5d-bc60f84c879c

wingkwong avatar Mar 24 '25 14:03 wingkwong