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
Use inspect element to remove the h-0 overflow-hidden classes from the select element (helps to visually see what's going on)
Enter some items into the input chip, then shift + tab to focus the select
Use Arrow Keys, Control + Arrow Keys to navigate through select to see unintended behaviour
Anything else?
It would be useful to have some way to focus and remove chips using the keyboard.
Perhaps buttons instead of clickable spans would be better for the chips?
The text was updated successfully, but these errors were encountered:
Having played around a little with the source code, it does seem to be as simple as just renaming the span to a button, adding some focus classes, and setting the tabindex on the select.
I could have.a PR ready basically whenever, but I'm not sure the best way to implement the focus styles - should they be in the same prop as the other chip styles? Should it be its own prop? Or perhaps on the tailwind side?
Current Behavior
At the moment, the hidden
select
is focusable from the keyboard.This leads to unexpected behaviours as
select
elements do have keyboard inputs, but they don't seem to work cross-browser.Steps To Reproduce
InputChip
docs pageh-0 overflow-hidden
classes from the select element (helps to visually see what's going on)select
select
to see unintended behaviourAnything else?
It would be useful to have some way to focus and remove chips using the keyboard.
Perhaps buttons instead of clickable
span
s would be better for the chips?The text was updated successfully, but these errors were encountered: