Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 14 commits into
base: next
Choose a base branch
from

Conversation

igABHINAV
Copy link

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);
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants