소스 검색

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

Igor Vaynberg 13 년 전
부모
커밋
38b9e935f0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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