Browse Source

#3002, fixes tab index broken on selection dropdown

pull/3277/head
Jack 9 years ago
parent
commit
d85ce6e207
1 changed files with 5 additions and 5 deletions
  1. 10
      src/definitions/modules/dropdown.js

10
src/definitions/modules/dropdown.js

@ -2027,7 +2027,7 @@ $.fn.dropdown = function(parameters) {
}
else {
module.debug('Added tabindex to dropdown');
if(!$module.attr('tabindex') ) {
if( $module.attr('tabindex') === undefined) {
$module
.attr('tabindex', 0)
;
@ -2684,19 +2684,19 @@ $.fn.dropdown = function(parameters) {
if( module.has.search() ) {
module.debug('Searchable dropdown initialized');
$search
.attr('tabindex', '-1')
.removeAttr('tabindex')
;
$menu
.attr('tabindex', '-1')
.removeAttr('tabindex')
;
}
else {
module.debug('Simple selection dropdown initialized');
$module
.attr('tabindex', '-1')
.removeAttr('tabindex')
;
$menu
.attr('tabindex', '-1')
.removeAttr('tabindex')
;
}
}

Loading…
Cancel
Save