How can we select the node that is clicked on by a right click event? I am trying to pass the selected node's id on a context menu select event but unless the user left clicks on the node to select it first, the last selected node information gets sent, if one was even selected.
This may be fairly basic, but I can't find any examples of this.
Thanks.