-
Notifications
You must be signed in to change notification settings - Fork 5k
Issue Title #19292
Copy link
Copy link
Closed
Labels
Component: AccessibilityIssue or pull request is related to WCAG or ARIAIssue or pull request is related to WCAG or ARIALTS-PORTABLEIssue's fix will be ported to supported LTS versionsIssue's fix will be ported to supported LTS versionsType: BugIssue contains a bug related to a specific component. Something about the component is not workingIssue contains a bug related to a specific component. Something about the component is not working
Milestone
Metadata
Metadata
Assignees
Labels
Component: AccessibilityIssue or pull request is related to WCAG or ARIAIssue or pull request is related to WCAG or ARIALTS-PORTABLEIssue's fix will be ported to supported LTS versionsIssue's fix will be ported to supported LTS versionsType: BugIssue contains a bug related to a specific component. Something about the component is not workingIssue contains a bug related to a specific component. Something about the component is not working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Done
Describe the bug
Issue 1) When using arrow keys to navigate a tree with droppableNodes = true it throws an error and does not work
Reproducible at https://primeng.org/tree#dragdrop
this was caused by 224b85c as the focus node is expecting 2 children on the element, but the first one got removed in this pr, and so has been an issue since v20.2.0 and still exists in the most recent version
Issue 2) When collapsing a node the focus can get thrown outside of the entire tree which I can consistently reproduce at https://primeng.org/tree#selection
Pull Request Link
#19291
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://primeng.org/tree#dragdrop
Environment
Any
Angular version
v20+
PrimeNG version
v21
Node version
22.14.0
Browser(s)
No response
Steps to reproduce the behavior
For issue one
For issue 2
I can consistently reproduce this at https://primeng.org/tree#selection
Expected behavior
using arrow keys should navigate the tree and not throw any error