Kevin Warrington 12 年 前
コミット
77ea616d0c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -380,7 +380,7 @@ the specific language governing permissions and limitations under the Apache Lic
                     }
                     }
                     group.children=[];
                     group.children=[];
                     $(datum.children).each2(function(i, childDatum) { process(childDatum, group.children); });
                     $(datum.children).each2(function(i, childDatum) { process(childDatum, group.children); });
-                    if (group.children.length) {
+                    if (group.children.length || query.matcher(t, text(group))) {
                         collection.push(group);
                         collection.push(group);
                     }
                     }
                 } else {
                 } else {