Select a default node
madmunky opened this issue · 1 comments
madmunky commented
How can/should you select a node by default, in the data object I pass to TreeBeard I can set the node.active = true and this will highlight that node on render but it doesn't seem to actually select it and if I select another node via the UI I end up with two highlighted node?
madmunky commented
Figured it out.
You have to do this.setState({ cursor: node }); on the node you set as active and it will select it.