Skip to content

Conversation

@radu-iamandi-visma
Copy link
Contributor

@radu-iamandi-visma radu-iamandi-visma commented Jun 3, 2025

According to my understanding, the ARIA requirements say that, when the node is closed, pressing RIGHT should open the children, but not change focus.

Currently, pressing RIGHT open the children and changes focus to the first child.

Fix #8066

Generated:
This pull request modifies the behavior of the onArrowRight function in the UITreeNode component to improve handling of tree node expansion.

Key changes in tree node behavior:

  • components/lib/tree/UITreeNode.js: Updated the onArrowRight function to ensure that the expand method respects the current expanded state, and removed the condition that checked for expanded before returning early.

@melloware
Copy link
Member

PrimeReact is doing the same as PrimeVue: https://primevue.org/tree/#accessibility

@melloware melloware added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Pending Review Issue or pull request is being reviewed by Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tree keyboard navigation not working as expected

3 participants