Commit 6ab9e048 authored by David Stutz's avatar David Stutz

Merge pull request #140 from nurikabe/master

Only show the filter if the number of options exceeds a set minimum.
parents 15742881 9884c02a
......@@ -66,7 +66,10 @@
// Enable filtering.
if (this.options.enableFiltering || this.options.enableCaseInsensitiveFiltering) {
this.buildFilter();
var enableFilterLength = Math.max(this.options.enableFiltering, this.options.enableCaseInsensitiveFiltering);
if (this.$select.find('option').length >= enableFilterLength) {
this.buildFilter();
}
}
// Build select all if enabled.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment