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

+ 2 - 2
select2.js

@@ -685,7 +685,6 @@
 
 
         open: function () {
         open: function () {
             if (this.opened()) return;
             if (this.opened()) return;
-            this.clearPlaceholder();
 
 
             this.container.addClass("select2-dropdown-open").addClass("select2-container-active");
             this.container.addClass("select2-dropdown-open").addClass("select2-container-active");
             if(this.dropdown[0] !== this.body.children().last()[0]) { 
             if(this.dropdown[0] !== this.body.children().last()[0]) { 
@@ -1394,7 +1393,8 @@
         open: function () {
         open: function () {
             if (this.opened()) return;
             if (this.opened()) return;
             this.parent.open.apply(this, arguments);
             this.parent.open.apply(this, arguments);
-            this.resizeSearch();
+			this.clearPlaceholder();
+			this.resizeSearch();
             this.focusSearch();
             this.focusSearch();
         },
         },