@headlessui/react@next set maxHeight on ListboxOptions #3025
Replies: 3 comments
-
Seems to be caused by the floating-ui sizeMiddleware: headlessui/packages/@headlessui-react/src/internal/floating.tsx Lines 295 to 301 in 043edb8 I'm not familiar with floating-ui, but maybe exposing the floating Context might help? |
Beta Was this translation helpful? Give feedback.
-
@RobinMalfait Hey 👋 Can we get some feedback on this one? |
Beta Was this translation helpful? Give feedback.
-
You can use the the !important css rule, is not recommend to use but I could not find any other fix.
|
Beta Was this translation helpful? Give feedback.
-
Hey,
does anyone has managed to set a
maxHeight
to the new ListboxOptions component? (@headlessui/react@next
).It get's an inline style of
maxHeight
which always fills the whole available space. That is quite annoying :(Any help is appreciated ✌️
Beta Was this translation helpful? Give feedback.
All reactions