From 691089301b0305168bdf9157515b3f13d771e77b Mon Sep 17 00:00:00 2001 From: Jack Date: Sun, 18 Mar 2018 14:26:08 -0700 Subject: [PATCH] Fix the 'ignoreCase' option when using multiselect to work with has.label #6123 --- src/definitions/modules/dropdown.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 5b18f2501..943178013 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -2579,6 +2579,9 @@ $.fn.dropdown = function(parameters) { escapedValue = module.escape.value(value), $label ; + if(settings.ignoreCase) { + escapedValue = escapedValue.toLowerCase(); + } $label = $('') .addClass(className.label) .attr('data-' + metadata.value, escapedValue) @@ -3043,6 +3046,9 @@ $.fn.dropdown = function(parameters) { escapedValue = module.escape.value(value), $labels = $module.find(selector.label) ; + if(settings.ignoreCase) { + escapedValue = escapedValue.toLowerCase(); + } return ($labels.filter('[data-' + metadata.value + '="' + module.escape.string(escapedValue) +'"]').length > 0); }, maxSelections: function() {