1
0
mirror of synced 2024-11-26 14:56:07 +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); formatted=this.opts.formatSelection(data, choice);
choice.find("div").replaceWith("<div>"+escapeMarkup(formatted)+"</div>"); choice.find("div").replaceWith("<div>"+escapeMarkup(formatted)+"</div>");
choice.find(".select2-search-choice-close") choice.find(".select2-search-choice-close")
.bind("mousedown", killEvent)
.bind("click dblclick", this.bind(function (e) { .bind("click dblclick", this.bind(function (e) {
if (!this.enabled) return; if (!this.enabled) return;