Skip to content

Commit b3b75a8

Browse files
committed
Merge pull request select2#518 from dubbs/patch-1
fix issue select2#517
2 parents 6e64336 + 77ea616 commit b3b75a8

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)