tree
tree copied to clipboard
Virtual tree Auto scroll to top when moving node to top
We have larger tree structures to render, we faced performance issues with rc-tree. The we have added the virtualization with help virtual & itemHeight and height props. performance wise it was good but we are face issue when we are trining to move the 500th node (not present at DOM first load) to top then tree was not auto scrolling to top.
<RcTree
ref={rcTreeRef}
motion={motion}
onDrop={onDrop}
expandedKeys={expandedKeys}
onExpand={onExpand}
selectedKeys={selectedKeys}
onSelect={onSelectNode}
height={400}
itemHeight={30}
virtual
draggable
>
{treeNodes}
</RcTree>