List - arrow key navigation can get stuck #7936
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Field Apps
Issues logged by ArcGIS Field Apps team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
calcite-components
Issues specific to the @esri/calcite-components package.
estimate - 5
A few days of work, definitely requires updates to tests.
impact - p2 - want for an upcoming milestone
User set priority impact status of p2 - want for an upcoming milestone
p - medium
Issue is non core or affecting less that 60% of people using the library
Milestone
Check existing issues
Actual Behavior
When using arrow keys to navigate a list, you can get "stuck" in a state where up/down arrows fail to move you through the list items even though it looks like they should.
This occurs when you use the right-arrow on a list item that does not have any children. After you do this, it will still look like the list item is selected, but up/down arrows will stop working to move you through the list. Hitting the left-arrow at this time will restore the function of the up/down arrows.
This can also occur when you use the right-arrow on a list item with children that is already expanded. It seems like the list lets you left-arrow one step too far with all items.
Expected Behavior
When a list item is selected, up/down arrows should move selection through the list.
Reproduction Sample
https://codepen.io/_timmorey_/pen/YzdJrXL?editors=100
Reproduction Steps
right-arrow
to expand. the itemright-arrow
again, even though the item is expandedleft-arrow
down-arrow
to move down to a child itemright-arrow
on the child itemThis is also reproducible in the documentation example: https://developers.arcgis.com/calcite-design-system/components/list/. My extended sample just adds a few child list items to exercise stuff more.
Reproduction Version
1.8.0
Relevant Info
Tested on Chrome Version 117.0.5938.132 (Official Build) (arm64) on MacOS 13.5.2
Regression?
No response
Priority impact
p2 - want for current milestone
Impact
Users that prefer or rely on keyboard navigation can get into a confusing state where up/down arrow keys stop responding even though they look like they should work to move selection.
Calcite package
Esri team
ArcGIS Field Apps
The text was updated successfully, but these errors were encountered: