diff --git a/src/js/select2/data/tags.js b/src/js/select2/data/tags.js index db42faab..7bb45c94 100644 --- a/src/js/select2/data/tags.js +++ b/src/js/select2/data/tags.js @@ -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) {