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); } };