1
0
mirror of synced 2024-11-29 16:16:02 +03:00

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

This commit is contained in:
Igor Vaynberg 2012-08-02 15:05:33 -07:00
parent 84eb5b33fc
commit bef4af91f8

View File

@ -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;