Tree: Lazy loaded tree crashes when using keyboard navigation (right arrow) to expand #6049
Labels
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Describe the bug
Selecting a node, then pressing the right arrow button crashes the tree when the tree is lazy loaded. Issue occurs in demo as well.
Cannot read properties of undefined (reading 'children')
at tree.esm.js:1094:1
at tree.esm.js:150:1
Code:
Reproducer
No response
PrimeReact version
10.5.1
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
Chrome 121
Steps to reproduce the behavior
Expected behavior
The tree should expand the node instead of crashing
The text was updated successfully, but these errors were encountered: