Search floor equal to or greater to

This commit is contained in:
Josh Johnson 2017-05-18 09:17:51 +01:00
parent 1b8621b54e
commit be3b574105

View file

@ -1240,7 +1240,7 @@ class Choices {
// Run callback if it is a function
if (this.input === document.activeElement) {
// Check that we have a value to search and the input was an alphanumeric character
if (value && value.length > this.config.searchFloor) {
if (value && value.length >= this.config.searchFloor) {
// Check flag to filter search input
if (this.config.searchChoices) {
// Filter available choices