Skip to content

Commit 0f9df6d

Browse files
committed
Fixes debug statement in dropdown
1 parent 2d30e44 commit 0f9df6d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/modules/dropdown.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,13 @@ $.fn.dropdown = function(parameters) {
344344
? module.get.value()
345345
: module.get.text()
346346
;
347-
strict = (value === '')
348-
? true
349-
: strict || false
350-
;
347+
if(strict === undefined && value === '') {
348+
module.debug('Ambiguous dropdown value using strict type check', value);
349+
strict = true;
350+
}
351+
else {
352+
strict = strict || false;
353+
}
351354
if(value !== undefined) {
352355
$item
353356
.each(function() {
@@ -363,7 +366,6 @@ $.fn.dropdown = function(parameters) {
363366
: optionText
364367
;
365368
if(strict) {
366-
module.debug('Ambiguous dropdown value using strict type check', value);
367369
if( optionValue === value ) {
368370
$selectedItem = $(this);
369371
}

0 commit comments

Comments
 (0)