Browse Source

fix the fix for #129

Igor Vaynberg 13 năm trước cách đây
mục cha
commit
b2314bcb86
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      select2.js

+ 2 - 2
select2.js

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