From 38b9e935f037cdf2ac7ec3016c99762ad8b37997 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Fri, 27 Jul 2012 00:46:32 +0300 Subject: [PATCH] do not hide search field when disabled because it also hides the placeholder. fixes #272 --- select2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/select2.js b/select2.js index 052da3e9..ce3a1bf4 100755 --- a/select2.js +++ b/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