-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Inconsistent accessibility behavior within the auto-close behavior of dropdowns #40948
Comments
Hi Patrick @Necxes , You’re right that with However, e.g. Nice catch! 😊 |
Unless I’m overlooking something, the keyboard navigation behaves similarly to the mouse navigation:
I'm going to close this issue for now. If I've missed anything, please let me know, and I’ll reopen it :) |
Hey @MohamadSalman11 and @julien-deramond. If it's intended I am fine! Thanks for taking the time to answer - really appreciate it :) |
Prerequisites
Describe the issue
Hi,
I found inconsistent accessibility behavior within the auto-close behavior of dropdowns when trying to navigate through it with the tab key.
When choosing
data-bs-auto-close="true"
anddata-bs-auto-close="outside"
and using the tap key to navigate the dropdowns, it closes once it loses focus.But when choosing
data-bs-auto-close="false"
anddata-bs-auto-close="inside"
the dropdown stays open, even though the focus is on the next item.I've added a screen recording of the issue:
https://jam.dev/c/dff4dcbf-9535-465c-84ec-40f835c13a10
Reduced test cases
The issue is appearing in the bootstrap documentation:
https://getbootstrap.com/docs/5.2/components/dropdowns/#auto-close-behavior
What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
5.2.1
The text was updated successfully, but these errors were encountered: