sim-tree
sim-tree copied to clipboard
get the clicked node
Currently, onClick() callback gives every selected node. I wanted to get only the selected node.
need to change this line:
https://github.com/linjingming/sim-tree/blob/master/src/simTree.js#L342
to
$($tar[0].parentElement).data()
My solution (in the distro):

Maybe pass the selected node data in the first param and the list in the second?