How to use PopoverPanel without overflow: auto
#3276
Unanswered
leoschweizer
asked this question in
Help
Replies: 1 comment
-
So, one workaround (when using tailwind) is to apply an override as important:
Still, that doesn't feel like a clean solution. |
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.
-
I have a use case where I am rendering dropdowns in a floating popover. Currently those dropdowns get clipped by the boundaries of the PopoverPanel, due to the latter having applied an inline style of
overflow: auto
. But I want them to overflow the Panel (this was previously possible with @headlessui/react v1).However, due to overriding any user provided styles with the internal styles here:
headlessui/packages/@headlessui-react/src/components/popover/popover.tsx
Lines 945 to 949 in 03c22b4
... and the internal styles containing a hardcoded
overflow: auto
here:headlessui/packages/@headlessui-react/src/internal/floating.tsx
Line 318 in 03c22b4
it does not seem to be possible to get rid of it? If I remove the
overflow: auto
in devtools, everything still seems to work as expected, so I don't see why this would be forced to be there.Any suggestions how I cloud make this work again?
Beta Was this translation helpful? Give feedback.
All reactions