From de51a5dbdd43ac5d5d77876fc32ef9b0cf55c162 Mon Sep 17 00:00:00 2001 From: Justin DuJardin Date: Thu, 29 Mar 2012 13:45:36 -0700 Subject: [PATCH] Hide search.parent() container when minimumResultsForSearch is not met on a single select. --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 67d74937..224f81c0 100755 --- a/select2.js +++ b/select2.js @@ -772,7 +772,7 @@ // hide the search box if this is the first we got the results and there are a few of them if (initial === true) { - this.search.toggle(data.results.length >= this.opts.minimumResultsForSearch); + this.search.parent().toggle(data.results.length >= this.opts.minimumResultsForSearch); } };