Open anatawa12 opened 4 months ago
@anatawa12 Having kinda the same issue. I found out the problem is that select container div has position: relative, but options liist with position: absolute is the CHILD of container PARENT div. I guess there is no "simple" solution, cuz once u change positioning on the PARENT container div all styles go wrong.
PS: Sry, but this is the one of the worst component collections I've ever seen.
@anatawa12 try lockScroll prop - it helps with overflow issue, but has another problem)
The further investigation shows that this option spawns an overlay div with fixed position. If you change its zIndex then problem will dissapear.
However the main problem of this lib is that you need to implement a huge pile of tricks and workarounds to make it work. Also there is no id's for specific elements (for the overlay for example or for some specific select parts )
The final solution for me was to change theme for select a bit:
styles: { base: { container: { width: "w-full", minWidth: "min-w-SOMEVALUE [&>div]:!z-20", },
and set overflow-auto for parent container
I'm using small reimplementation of select with MenuList as a workaround and it works.
For menu popup, overflow scroll ignores overflow as expected. however, for select options popup, the selection list popup is hide by overflow hidden or scroll