Skip to content

Commit

Permalink
#3002, fixes tab index broken on selection dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Nov 1, 2015
1 parent 77dfa8f commit 77954a2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
;
Expand Down Expand Up @@ -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')
;
}
}
Expand Down

0 comments on commit 77954a2

Please sign in to comment.