holiber/sl-vue-tree

Context menu not related to clicked item

Closed this issue · 1 comments

It appears that the context menu is only acting upon the last/selected item. I would expect the behaviour to act upon the node that I have selected.

Answer found in an older issue, sorry for double issueing!

      showContextMenu(node, event) {
        this.$refs.slVueTree.select(node.path); // <-- add this line to select current node
      },