[DropdownMenu]: Style applied to the body[data-scroll-locked] messes up position: sticky on the child elements
#2873
Replies: 7 comments 2 replies
-
|
+1 |
Beta Was this translation helpful? Give feedback.
-
|
Hi, on the |
Beta Was this translation helpful? Give feedback.
-
|
+1 |
Beta Was this translation helpful? Give feedback.
-
|
+1 |
Beta Was this translation helpful? Give feedback.
-
|
+1 |
Beta Was this translation helpful? Give feedback.
-
|
Anyone figure this out? Setting the modal to false doesnt seem to fix it either |
Beta Was this translation helpful? Give feedback.
-
|
Same thing happened with me with the Sheet componet in shadcn |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Opening the Radix DropdownMenu makes a div with
position: sticky;relative again for some reason. I wasn't able to reproduce this, so probably it's not a bug. But I am lost, where would the problem lie?If I override the
overflow: hiddenbehavior on body, then it works fine.Screen.Recording.2024-05-02.at.9.24.06.AM.mov
Beta Was this translation helpful? Give feedback.
All reactions