1
0
mirror of synced 2025-02-09 16:49:24 +03:00

improve whitespace detection

This commit is contained in:
Igor Vaynberg 2012-07-03 16:56:42 +03:00
parent 83c11b27df
commit 9c4a4d1b8a

View File

@ -476,7 +476,7 @@
installKeyUpChangeEvent(search);
search.bind("keyup-change", this.bind(this.updateResults));
search.bind("focus", function () { search.addClass("select2-focused"); search.val(""); });
search.bind("focus", function () { search.addClass("select2-focused"); if (search.val() === " ") search.val(""); });
search.bind("blur", function () { search.removeClass("select2-focused");});
this.dropdown.delegate(resultsSelector, "click", this.bind(function (e) {