|
@@ -1216,8 +1216,12 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (search.val().length < opts.minimumInputLength && checkFormatter(opts.formatInputTooShort, "formatInputTooShort")) {
|
|
|
- render("<li class='select2-no-results'>" + opts.formatInputTooShort(search.val(), opts.minimumInputLength) + "</li>");
|
|
|
+ if (search.val().length < opts.minimumInputLength) {
|
|
|
+ if (checkFormatter(opts.formatInputTooShort, "formatInputTooShort")) {
|
|
|
+ render("<li class='select2-no-results'>" + opts.formatInputTooShort(search.val(), opts.minimumInputLength) + "</li>");
|
|
|
+ } else {
|
|
|
+ render("");
|
|
|
+ }
|
|
|
return;
|
|
|
}
|
|
|
else {
|