-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Ran into overflow and bounds detection issue #43
Comments
Thanks for pointing this out. The second problem (bounds detection) is something I haven't addressed yet because it seems very hard and other things were more important at the time. A PR would be very welcome! Regarding the first problem (overflow) : I believe this was introduced by one of my recent changes. I bet if you try I'll be able to fix this in a couple of weeks (I'm traveling without my laptop right now) Until then, you should be good downgrading to |
Until a release with the bugfix is published, the issue can also be fixed by assigning a
see live example |
Thanks for checking in on this Max! |
Overflow problem has been fixed in 1.2.1 I added a section to the cheatsheet that shows how to open the dropdown above the input field. The "bounds detection" however will have to happen in your live view or live component. Doesn't completely address your issue I know, but it's a steps in the right direction. |
I decided to test live_select but ran into two issues.
Select options overflow
This screenshot is from the demo app:
Any idea why this is overflowing? This happens on both Firefox and Chrome.
No bounds detection
Most JS-based select dropdowns have some sort of bounds detection. This makes it such that if there is not enough space to show the dropdown below the input field, the dropdown opens upwards. Live_select doesn't appear to support this:
You can look at Headless-UI or shadcn/ui to get a sense of what I am talking about:
Thank you so much for making this open source! :)
The text was updated successfully, but these errors were encountered: