Explorar o código

Hide search.parent() container when minimumResultsForSearch is not met on a single select.

Justin DuJardin %!s(int64=13) %!d(string=hai) anos
pai
achega
de51a5dbdd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      select2.js

+ 1 - 1
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
         // hide the search box if this is the first we got the results and there are a few of them
 
 
         if (initial === true) {
         if (initial === true) {
-            this.search.toggle(data.results.length >= this.opts.minimumResultsForSearch);
+            this.search.parent().toggle(data.results.length >= this.opts.minimumResultsForSearch);
         }
         }
 
 
     };
     };