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

Loading…
Cancel
Save