Explorar o código

fixed opening and closing of dropdown when an element is removed from selection. fixes #287

Igor Vaynberg %!s(int64=13) %!d(string=hai) anos
pai
achega
bef4af91f8
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      select2.js

+ 1 - 0
select2.js

@@ -1881,6 +1881,7 @@
             formatted=this.opts.formatSelection(data, choice);
             choice.find("div").replaceWith("<div>"+escapeMarkup(formatted)+"</div>");
             choice.find(".select2-search-choice-close")
+                .bind("mousedown", killEvent)
                 .bind("click dblclick", this.bind(function (e) {
                 if (!this.enabled) return;