Преглед изворни кода

Merge pull request #223 from malekpour/master

fix dropdown reopen on enter
Igor Vaynberg пре 13 година
родитељ
комит
b731545eea
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -981,7 +981,7 @@
             var search = this.search, results = this.results, opts = this.opts, self=this;
             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 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;
                 return;
             }
             }