You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario: Open Dropdown menu, focus on one of the items and press "Tab" key.
It closes the dropdown menu without selecting the focused option and move to the next focusable element.
Expected Behavior
When pressing the Tab key, it should select the focused option, close the dropdown menu and move to the next element.
Details:
In Combobox it works exactly like this, but in Dropdown the current behaviour doesn't select the option.
The only exception when it works in Dropdown is the Clearable dropdown - but still you need to select first an option and then when clearable button is visible, pressing the "Tab" key on focused option will work correctly.
I'm not the SME on dropdown a11y, but AFAIR the behaviour you're describing works as expected. the keyboard navigation for selecting value should be SPACEBAR or ENTER not TAB press, I defer the decision/further discussion to authors though
Component
Dropdown
Package version
9.13.15
React version
18.3.1
Environment
Current Behavior
Scenario: Open Dropdown menu, focus on one of the items and press "Tab" key.
It closes the dropdown menu without selecting the focused option and move to the next focusable element.
Expected Behavior
When pressing the Tab key, it should select the focused option, close the dropdown menu and move to the next element.
Details:
In Combobox it works exactly like this, but in Dropdown the current behaviour doesn't select the option.
The only exception when it works in Dropdown is the Clearable dropdown - but still you need to select first an option and then when clearable button is visible, pressing the "Tab" key on focused option will work correctly.
Reproduction
https://stackblitz.com/run?file=src%2Fexample.tsx
Steps to reproduce
Current: Pressing tab key doesn't select the focused option
Expected: Pressing tab key selects the focused option
Are you reporting an Accessibility issue?
yes
Suggested severity
Medium - Has workaround
Products/sites affected
all dropdown components
Are you willing to submit a PR to fix?
no
Validations
The text was updated successfully, but these errors were encountered: