浏览代码

fix updateResults prevention if dropdown is closed

Ali Malrkpour 13 年之前
父节点
当前提交
01faae3ff7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -965,7 +965,7 @@
             var search = this.search, results = this.results, opts = this.opts, self=this;
 
             // if the search is currently hidden we do not alter the results
-            if (initial !== true && this.showSearchInput === false) {
+            if (initial !== true && (this.showSearchInput === false || !this.opened())) {
                 return;
             }