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.Dismiss alert
When using rc-tree in controlled mode, with some animations (with the motion prop), and with expandAction="click", then the Tree gets stuck whenever you click on a leaf.
When that happens, you can no longer expand or collapse the nodes.
The only way out is to trigger a re-render of the Tree by some external event, such as a drag-and-drop or clicking a button that changes the tree state.
This can be really troubling for the end user, as they think the app is broken.
Hi,
When using rc-tree in controlled mode, with some animations (with the
motion
prop), and withexpandAction="click"
, then the Tree gets stuck whenever you click on a leaf.When that happens, you can no longer expand or collapse the nodes.
The only way out is to trigger a re-render of the Tree by some external event, such as a drag-and-drop or clicking a button that changes the tree state.
This can be really troubling for the end user, as they think the app is broken.
Here is a codesandbox that reproduces the issue: https://codesandbox.io/s/lucid-frog-mks62z?file=/App.jsx
It is based on the basic-controlled example, to which I applied the following changes:
onCheck
,checkedKeys
,onSelect
andselectedKeys
propsexpandAction="click"
motion={motion}
with some style (from the animation example)Steps to reproduce:
rc-tree version: 5.7.0
Thanks for your help!
The text was updated successfully, but these errors were encountered: