浏览代码

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

Justin DuJardin 13 年之前
父节点
当前提交
de51a5dbdd
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 
         if (initial === true) {
-            this.search.toggle(data.results.length >= this.opts.minimumResultsForSearch);
+            this.search.parent().toggle(data.results.length >= this.opts.minimumResultsForSearch);
         }
 
     };