1
0
mirror of synced 2024-11-26 14:56:07 +03:00

Fix focus issue on multi-value select

Inside the multi-value select box, when you hit backspace next to the
choice, it gets the `select2-search-choice-focus` class, but that class
is not being removed when select box loses the focus.
This commit is contained in:
Dmitrii Chekaliuk 2013-03-28 02:19:28 +02:00
parent c951b72bce
commit aedcc10b8f

View File

@ -2194,6 +2194,7 @@ the specific language governing permissions and limitations under the Apache Lic
this.search.bind("blur", this.bind(function(e) {
this.container.removeClass("select2-container-active");
this.search.removeClass("select2-focused");
this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");
if (!this.opened()) this.clearSearch();
e.stopImmediatePropagation();
}));