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:
parent
563198a4a2
commit
cb9a904578
5
src/js/select2/data/tags.js
vendored
5
src/js/select2/data/tags.js
vendored
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user