New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overflow issue for fields that have a large amount of options/choices #30
Comments
+1 |
Just, what I needed. I've add a little fix:
|
Errrm, this didn't work until I added
|
Problem is, elements hidden atthe bottom of the list won't show up, and you need to take care of it in the click handler, to get the selected element into focus. I solved it like this:
|
Not working for me |
Apparently, combining @Surbma and @yaniv-mobilebrain' s solutions, fixed the problem of content overflowing inside a div and maintains a height of 300px and also the contents inside ul.list become scrollable |
I was having an issue where if I had a field with large amount of choices (i.e. - State or Country Field), there was no scrollbar and the list overflowed outside of the div. I fixed this by setting:
.nice-select .list { max-height: 300px; overflow: scroll; }
The text was updated successfully, but these errors were encountered: