Explorar o código

do not hide search field when disabled because it also hides the placeholder. fixes #272

Igor Vaynberg %!s(int64=12) %!d(string=hai) anos
pai
achega
38b9e935f0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      select2.js

+ 2 - 2
select2.js

@@ -1700,7 +1700,7 @@
 
             this.parent.enable.apply(this, arguments);
 
-            this.search.show();
+            this.search.removeAttr("disabled");
         },
 
         // multi
@@ -1709,7 +1709,7 @@
 
             this.parent.disable.apply(this, arguments);
 
-            this.search.hide();
+            this.search.attr("disabled", true);
         },
 
         // multi