1
0
mirror of synced 2025-02-16 20:13:16 +03:00

Make tags matching case insensitive

This closes https://github.com/select2/select2/issues/3566
This closes https://github.com/select2/select2/pull/4509
This commit is contained in:
Yaron Uliel 2016-07-30 19:23:25 +03:00 committed by Kevin Brown
parent 563198a4a2
commit cb9a904578

View File

@ -53,7 +53,10 @@ define([
}, true)
);
var checkText = option.text === params.term;
var optionText = (option.text || '').toUpperCase();
var paramsTerm = (params.term || '').toUpperCase();
var checkText = optionText === paramsTerm;
if (checkText || checkChildren) {
if (child) {