Comments (6)
Errrm, this didn't work until I added .open
to .nice-select
.nice-select.open .list { max-height: 300px; overflow-y: scroll; }
from jquery-nice-select.
Just, what I needed. I've add a little fix:
.nice-select .list { max-height: 300px; overflow-y: scroll; }
from jquery-nice-select.
+1
from jquery-nice-select.
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:
$(".nice-select.main").on("click", function() { setTimeout(function() { $(this).find(".list li.selected")[0].scrollIntoView(); }.bind(this), 100); });
from jquery-nice-select.
Not working for me
from jquery-nice-select.
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
from jquery-nice-select.
Related Issues (20)
- Not working in bootstrap modal HOT 1
- update not working append with append HOT 1
- tabindex is not working
- Using / for division outside of calc() is deprecated
- invalid form control with name='namefield' is not focusable HOT 3
- 508 Compliance?
- RTL support
- 'update' not rendering the elements HOT 5
- option.append() doesn't work HOT 2
- Bootstrap 4 validation HOT 1
- Nuxt.js : niceSelect is not a function HOT 1
- Didnt work with HTML onchange="" property HOT 1
- Required auto-suggestion
- NiceSelect Inside Bootstrap Modal
- Having class on options HOT 1
- Type of license? HOT 1
- Event Handler for Autocomplete and Click Off
- Can not select a value when the select is inside a label HOT 2
- Nice select dropdown not working with "e.stopPropagation();" HOT 1
- Fail to update options when they are not strings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-nice-select.