Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

fix Tree keyboard navigation when item expands #8066#8067

Open
radu-iamandi-visma wants to merge 1 commit into
primefaces:masterfrom
radu-iamandi-visma:feat/fix-tree-keyboard-navigation
Open

fix Tree keyboard navigation when item expands #8066#8067
radu-iamandi-visma wants to merge 1 commit into
primefaces:masterfrom
radu-iamandi-visma:feat/fix-tree-keyboard-navigation

Conversation

@radu-iamandi-visma

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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