|
|
@ -965,19 +965,23 @@ $.fn.dropdown = function(parameters) { |
|
|
|
module.verbose('Ambiguous dropdown value using strict type check', $choice, value); |
|
|
|
if( optionValue === value ) { |
|
|
|
$selectedItem = $(this); |
|
|
|
return true; |
|
|
|
} |
|
|
|
else if( !$selectedItem && optionText === value ) { |
|
|
|
$selectedItem = $(this); |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
if( optionValue == value ) { |
|
|
|
module.verbose('Found select item by value', optionValue, value); |
|
|
|
$selectedItem = $(this); |
|
|
|
return true; |
|
|
|
} |
|
|
|
else if( !$selectedItem && optionText == value ) { |
|
|
|
module.verbose('Found select item by text', optionText, value); |
|
|
|
$selectedItem = $(this); |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
@ -1180,7 +1184,7 @@ $.fn.dropdown = function(parameters) { |
|
|
|
selectedText, |
|
|
|
selectedValue |
|
|
|
; |
|
|
|
if($selectedItem) { |
|
|
|
if($selectedItem && !$selectedItem.hasClass(className.active) ) { |
|
|
|
module.debug('Setting selected menu item to', $selectedItem); |
|
|
|
module.remove.activeItem(); |
|
|
|
module.remove.selectedItem(); |
|
|
|