From bef4af91f8dd3dde2e96af664ca2cd8ce0249d8e Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Thu, 2 Aug 2012 15:05:33 -0700 Subject: [PATCH] fixed opening and closing of dropdown when an element is removed from selection. fixes #287 --- select2.js | 1 + 1 file changed, 1 insertion(+) diff --git a/select2.js b/select2.js index da6a4d1a..73dfa94f 100755 --- a/select2.js +++ b/select2.js @@ -1881,6 +1881,7 @@ formatted=this.opts.formatSelection(data, choice); choice.find("div").replaceWith("
"+escapeMarkup(formatted)+"
"); choice.find(".select2-search-choice-close") + .bind("mousedown", killEvent) .bind("click dblclick", this.bind(function (e) { if (!this.enabled) return;