Igor Vaynberg před 12 roky
rodič
revize
ecbdc9305b
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      select2.js

+ 2 - 1
select2.js

@@ -1011,12 +1011,13 @@ the specific language governing permissions and limitations under the Apache Lic
 
 
             this.container.addClass("select2-dropdown-open").addClass("select2-container-active");
             this.container.addClass("select2-dropdown-open").addClass("select2-container-active");
 
 
-            this.updateResults(true);
 
 
             if(this.dropdown[0] !== this.body().children().last()[0]) {
             if(this.dropdown[0] !== this.body().children().last()[0]) {
                 this.dropdown.detach().appendTo(this.body());
                 this.dropdown.detach().appendTo(this.body());
             }
             }
 
 
+            this.updateResults(true);
+
             mask = $("#select2-drop-mask");
             mask = $("#select2-drop-mask");
 
 
             // ensure the mask is always right before the dropdown
             // ensure the mask is always right before the dropdown