Skip to content

Commit bef4af9

Browse files
committed
fixed opening and closing of dropdown when an element is removed from selection. fixes select2#287
1 parent 84eb5b3 commit bef4af9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

select2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,6 +1881,7 @@
18811881
formatted=this.opts.formatSelection(data, choice);
18821882
choice.find("div").replaceWith("<div>"+escapeMarkup(formatted)+"</div>");
18831883
choice.find(".select2-search-choice-close")
1884+
.bind("mousedown", killEvent)
18841885
.bind("click dblclick", this.bind(function (e) {
18851886
if (!this.enabled) return;
18861887

0 commit comments

Comments
 (0)