Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
DirectoryTree component onExpand returns different expandedKeys #12567
Using Chrome on Windows
Steps to reproduce
Collapse the title 'Position' by clicking on the text - it will print
Refresh the entire page (component is newly mounted)
Collapse the title 'Position' using the caret - it will print
What is expected?
One would assume that when using DirectoryTree, collapsing/expanding the nodes by either clicking the title or clicking the caret should give the exact same behavior (return the exact same nodes). In this case, the caret collapse/expand seems to be the correct one.
What is actually happening?
onExpand doesn't return parent keys if the text is clicked, but it will if the caret is clicked.