Commit 9884c02a authored by nurikabe's avatar nurikabe

Only show the filter if the number of options exceeds a set minimum.

parent 5c3beca3
......@@ -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