[Combobox] [React] Open and Clear Trigger can't be focused with keyboard #2652
benebene84
started this conversation in
General
Replies: 1 comment 3 replies
-
Okay, I did some follow-up and saw this behavior is defined in zag itself: Trigger: Clear Trigger: For the trigger it seems it's configurable, for the clear trigger it's not. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Current behavior
The combobox has open and clear trigger primitives to either open the combobox, or clear the selected value(s) in the input. Both triggers can be used by clicking them with the mouse. However it is impossible to focus them with the keyboard (tab on it). Both primitives have a tabindex of -1.
Expected behavior
I would expect both elements to be able to navigate with keyboard as well. Removing the negative tab index makes them focusable and controllable.
Link to Reproduction (or Detailed Explanation)
https://codesandbox.io/p/devbox/stupefied-robinson-fgfpv9?file=%2Fsrc%2FApp.tsx
Steps to Reproduce
Ark UI Version
"@ark-ui/react": "3.0.3"
Framework
Browser
All
Additional Information
I don't know if there are any specific reasons why the negative tabindex is set, if so I'd be happy to know them :) Thanks a lot for your work, it's really a great base to build your components on.
Beta Was this translation helpful? Give feedback.
All reactions