Skip to content

Fix dropdown keyboard submenu dismissal#42528

Open
mturac wants to merge 1 commit into
twbs:mainfrom
mturac:fix/issue-41869-dropdown-keyboard-submenus
Open

Fix dropdown keyboard submenu dismissal#42528
mturac wants to merge 1 commit into
twbs:mainfrom
mturac:fix/issue-41869-dropdown-keyboard-submenus

Conversation

@mturac

@mturac mturac commented Jun 19, 2026

Copy link
Copy Markdown

Fixes #41869.

Description

  • close open sibling menus before showing a dropdown toggle opened from ArrowUp/ArrowDown keyboard handling
  • keep the change scoped to dropdown toggles so ordinary menu-item keyboard navigation keeps working
  • add a regression test for nested dropdowns using data-bs-auto-close="outside"

Tests

  • npm run js-test-karma -- --browsers ChromeHeadless
  • npm run js-lint -- --quiet
  • JQUERY=true npx karma start js/tests/karma.conf.js --browsers ChromeHeadless

@mturac mturac requested a review from a team as a code owner June 19, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keyboard navigation in dropdowns with auto-close outside behavior leaves multiple dropdowns shown

2 participants