From 86952b4ed90ef73817b08271804ded32c6833d14 Mon Sep 17 00:00:00 2001 From: Chris Rueber Date: Sat, 8 Dec 2012 11:36:07 -0600 Subject: [PATCH] Update select2.js Adding case to fix placeholder not being displayed when element not visible. --- select2.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/select2.js b/select2.js index 6c96020e..d2a2683e 100644 --- a/select2.js +++ b/select2.js @@ -2210,6 +2210,11 @@ the specific language governing permissions and limitations under the Apache Lic if (searchWidth < 40) { searchWidth = maxWidth - sideBorderPadding; } + + if (searchWidth <= 0) { + searchWidth = minimumWidth + } + this.search.width(searchWidth); },