diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 6261b4cc11..0e36909faa 100644 --- a/src/definitions/modules/dropdown.js +++ b/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') ; } }