primereact icon indicating copy to clipboard operation
primereact copied to clipboard

fix Tree keyboard navigation when item expands #8066

Open radu-iamandi-visma opened this issue 5 months ago • 1 comments

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.

radu-iamandi-visma avatar Jun 03 '25 15:06 radu-iamandi-visma

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

melloware avatar Jun 03 '25 18:06 melloware