From 77954a298c465601e43589bc06ba542fe7803015 Mon Sep 17 00:00:00 2001 From: Jack Date: Sun, 1 Nov 2015 14:42:13 -0500 Subject: [PATCH] #3002, fixes tab index broken on selection dropdown --- src/definitions/modules/dropdown.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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') ; } }