You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Collapse the title 'Position' by clicking on the text - it will print
onExpand (2) ["0-0-0-0", "0-1-0-1"]
(All parents collapse)
Refresh the entire page (component is newly mounted)
Collapse the title 'Position' using the caret - it will print
onExpand (4) ["0-0-0-0", "0-0-0", "0-1-0-1", "0-1"]
(Only the Position node will collapse)
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.
The text was updated successfully, but these errors were encountered: