fixes #366
This commit is contained in:
parent
bdd746844d
commit
2cb435680b
@ -1216,8 +1216,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (search.val().length < opts.minimumInputLength && checkFormatter(opts.formatInputTooShort, "formatInputTooShort")) {
|
if (search.val().length < opts.minimumInputLength) {
|
||||||
render("<li class='select2-no-results'>" + opts.formatInputTooShort(search.val(), opts.minimumInputLength) + "</li>");
|
if (checkFormatter(opts.formatInputTooShort, "formatInputTooShort")) {
|
||||||
|
render("<li class='select2-no-results'>" + opts.formatInputTooShort(search.val(), opts.minimumInputLength) + "</li>");
|
||||||
|
} else {
|
||||||
|
render("");
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user