New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DirectoryTree component onExpand returns different expandedKeys #12567

raptoria opened this Issue Oct 9, 2018 · 0 comments


None yet
3 participants

raptoria commented Oct 9, 2018

  • I have searched the issues of this repository and believe that this is not a duplicate.




Using Chrome on Windows

Reproduction link

Steps to reproduce

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment