浏览代码

fix for some selects not closing. fixes #286

Igor Vaynberg 13 年之前
父节点
当前提交
84eb5b33fc
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      select2.js

+ 3 - 2
select2.js

@@ -1332,7 +1332,6 @@
                 } else if (this.enabled) {
                     this.open();
                 }
-                killEvent(e);
 
                 clickingInside = false;
             }));
@@ -1346,7 +1345,9 @@
             }));
 
             selection.bind("blur", this.bind(function() {
-                this.container.removeClass("select2-container-active");
+                if (!this.opened()) {
+                    this.container.removeClass("select2-container-active");
+                }
                 window.setTimeout(this.bind(function() { this.search.attr("tabIndex", this.opts.element.attr("tabIndex")); }), 10);
             }));