-
Notifications
You must be signed in to change notification settings - Fork 75
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
[Combobox] Unexpected keyboard navigation with arrow keys #6750
Comments
We also might want to disallow opening the dropdown via down arrow while a Chip's close button is in focus. |
It looks like the input is made transparent when a chip is actively focused. Anyone know why that is? cc @paulcpederson @macandcheese
Is there a valid reason to not show the placeholder when a chip is being focused? |
I don't think so, I'd expect it to remain visible. In the video in the original post above it seems to happen only when the Chip closest to the input has its close button focused. Not sure if its changed since that video however. |
I think the interaction behavior was modeled after https://mui.com/material-ui/react-autocomplete/#multiple-values |
@paulcpederson @macandcheese should we get design's opinion here? I'd prefer to remove it if possible but would like their approval. Sky, Aaron, can we remove hiding the placeholder text when a chip is focused? I'd like to keep it shown and don't see a good reason to hide it. |
Agreed, it may be intentional and matches the MUI example, but it feels unexpected. |
Thanks @ashetland. PR to remove it is ready. |
Installed and assigned for verification. |
🍡 Verified locally on |
Actual Behavior
When using Combobox in Multiple selection mode, navigating through the Chips with arrow keys produces unexpected behavior.
Using the arrows to navigate after entering Chip area with keyboard, focuses the chip in the wrong direction. Additionally, at some times the placeholder text disappears
Expected Behavior
I would expect the arrow keys to navigate correctly, and not have the placeholder text occasionally disappear as I interact with the chip focus with arrows.
Reproduction Sample
https://codepen.io/mac_and_cheese/pen/KKGKbpy?editors=1000
Reproduction Steps
Tab
to focus Combobox - first chip's close button will be focused first.Tab
again to focus the second chip's close button.Left Arrow
- expect to see the first chip's close button focused.Reproduction Version
1.2.0
Relevant Info
Screen.Recording.2023-04-06.at.7.37.51.PM.mov
Regression?
No response
Priority impact
p2 - want for current milestone
Impact
No response
Esri team
Calcite (design)
The text was updated successfully, but these errors were encountered: