Problem with Sticky header with Drawer #7317
Closed
elmurodurinboev
started this conversation in
General
Replies: 1 comment
-
In my opinion, this issue might be resolved by using the CSS property pointer-events-auto. I needed to place a route button at the bottom of the screen inside a sticky container. So, I applied pointer-events-auto like this:
You might want to try it too! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
When using a sticky or fixed
Header
component along with aDrawer
(from shadcn/ui), the header remains visible visually, but it becomes non-interactive (i.e., buttons or links inside it are not clickable) once the drawer is open.This happens even if the header has a higher
z-index
than the drawer. It seems like theDrawerContent
or its container is overlaying the entire viewport and blocking pointer events, including on elements behind it.Steps to reproduce
Header
with a high z-index (e.g.z-50
or more).Drawer
that opens from the top (or full-screen).Header
.Beta Was this translation helpful? Give feedback.
All reactions