nosferatu500 / react-sortable-tree

Drag-and-drop sortable component for nested data and hierarchies
https://nosferatu500.github.io/react-sortable-tree/
MIT License
150 stars 54 forks source link

rowHeight attribute cannot use as func #62

Closed hainguyenh closed 1 year ago

hainguyenh commented 1 year ago

I'm trying to use the attribute rowHeight but only work for fix value. If I input as rowHeight={({ treeData, node, path }) => { console.log(treeData); console.log(node); console.log(path); }}

The object {treeData, node, path} always undefine.

hainguyenh commented 1 year ago

I'm using wrong way

The correct way

rowHeight={( treeData, node, path ) => { console.log(treeData); console.log(node); console.log(path); }}