Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

Fixed issue #7100 : [Dropdown] - allowTab tabindex value should default to select's tabindex (if exists) #7100

Open igABHINAV opened this issue 1 year ago • 0 comments

updated code : tabbable: function() { var selectTabIndex = $module.attr('tabindex'); // Capture the tabindex from the select element if (module.is.searchSelection()) { module.debug('Added tabindex to searchable dropdown'); $search .val('') .attr('tabindex', selectTabIndex !== undefined ? selectTabIndex : 0); // Use the captured tabindex $menu .attr('tabindex', -1); } else { module.debug('Added tabindex to dropdown'); if ($module.attr('tabindex') === undefined) { $module .attr('tabindex', selectTabIndex !== undefined ? selectTabIndex : 0); // Use the captured tabindex $menu .attr('tabindex', -1); } } }

igABHINAV avatar Jun 17 '24 09:06 igABHINAV