Skip to content

Commit

Permalink
fixed opening and closing of dropdown when an element is removed from…
Browse files Browse the repository at this point in the history
… selection. fixes select2#287
  • Loading branch information
ivaynberg committed Aug 2, 2012
1 parent 84eb5b3 commit bef4af9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions select2.js
Expand Up @@ -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;

Expand Down

0 comments on commit bef4af9

Please sign in to comment.