浏览代码

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

Igor Vaynberg 12 年之前
父节点
当前提交
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