1
0
mirror of synced 2024-11-22 04:56:08 +03:00

Merge pull request #2828 from LudoZeGeek/patch-3

Hide search box if select is empty
This commit is contained in:
Kevin Brown 2014-11-25 12:48:21 -05:00
commit 48ae56a2b6

View File

@ -1834,6 +1834,7 @@ the specific language governing permissions and limitations under the Apache Lic
if (data.results.length === 0 && checkFormatter(opts.formatNoMatches, "formatNoMatches")) {
render("<li class='select2-no-results'>" + evaluate(opts.formatNoMatches, opts.element, search.val()) + "</li>");
this.showSearch(search.val());
return;
}