We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f63a10c commit 3570ab5Copy full SHA for 3570ab5
1 file changed
select2.js
@@ -380,11 +380,11 @@ the specific language governing permissions and limitations under the Apache Lic
380
}
381
group.children=[];
382
$(datum.children).each2(function(i, childDatum) { process(childDatum, group.children); });
383
- if (group.children.length || query.matcher(t, text(group))) {
+ if (group.children.length || query.matcher(t, text(group), datum)) {
384
collection.push(group);
385
386
} else {
387
- if (query.matcher(t, text(datum))) {
+ if (query.matcher(t, text(datum), datum)) {
388
collection.push(datum);
389
390
0 commit comments