Codeborne
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
9 additions and
0 deletions
-
src/definitions/modules/dropdown.js
|
|
@ -269,6 +269,15 @@ $.fn.dropdown = function(parameters) { |
|
|
|
|
|
|
|
select: { |
|
|
|
firstUnfiltered: function() { |
|
|
|
module.verbose('Ensuring that an unfiltered option is selected'); |
|
|
|
var visibleExistingSelectedItem = $item.filter( |
|
|
|
'.' + className.selected + |
|
|
|
':not(.' + className.filtered + ')' + |
|
|
|
':not(.' + className.disabled + ')'); |
|
|
|
if (visibleExistingSelectedItem.length) { |
|
|
|
module.verbose('Previously selected element is unfiltered, not changing selection'); |
|
|
|
return; |
|
|
|
} |
|
|
|
module.verbose('Selecting first non-filtered element'); |
|
|
|
module.remove.selectedItem(); |
|
|
|
$item |
|
|
|