react-ui-tree icon indicating copy to clipboard operation
react-ui-tree copied to clipboard

not complete example

Open hex13 opened this issue 7 years ago • 1 comments

In example in the component <App /> there is a reference to its method isNodeCollapsed. The problem is that such method is not defined elsewhere in the <App /> component:

https://github.com/pqx/react-ui-tree/blob/6d48ca6d7a7df86655c9a679bc4be3451e0391e5/example/app.js#L43

hex13 avatar Jul 14 '17 06:07 hex13

what is more weird, isNodeCollapsed is used only once in the library and it doesn't seem to be actually used: https://github.com/pqx/react-ui-tree/blob/6d48ca6d7a7df86655c9a679bc4be3451e0391e5/lib/react-ui-tree.js#L31 Maybe I am wrong, but it looks for me like it is some part of old api (I've seen that collapsed property is used instead).

hex13 avatar Jul 14 '17 06:07 hex13