Skip to content

Commit 77ea616

Browse files
committed
fix issue select2#517
1 parent 6e64336 commit 77ea616

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ the specific language governing permissions and limitations under the Apache Lic
380380
}
381381
group.children=[];
382382
$(datum.children).each2(function(i, childDatum) { process(childDatum, group.children); });
383-
if (group.children.length) {
383+
if (group.children.length || query.matcher(t, text(group))) {
384384
collection.push(group);
385385
}
386386
} else {

0 commit comments

Comments
 (0)