diff --git a/src/modules/dropdown.js b/src/modules/dropdown.js index 8cce5b0e7..f919e88c0 100755 --- a/src/modules/dropdown.js +++ b/src/modules/dropdown.js @@ -344,10 +344,13 @@ $.fn.dropdown = function(parameters) { ? module.get.value() : module.get.text() ; - strict = (value === '') - ? true - : strict || false - ; + if(strict === undefined && value === '') { + module.debug('Ambiguous dropdown value using strict type check', value); + strict = true; + } + else { + strict = strict || false; + } if(value !== undefined) { $item .each(function() { @@ -363,7 +366,6 @@ $.fn.dropdown = function(parameters) { : optionText ; if(strict) { - module.debug('Ambiguous dropdown value using strict type check', value); if( optionValue === value ) { $selectedItem = $(this); }