Skip to content

Commit 6a1e73f

Browse files
committed
Small renaming
Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev>
1 parent 9182d3c commit 6a1e73f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/power-tree.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export default {
230230

231231
this.traverse((node, nodeModel) => {
232232
if (shiftSelectionMode) {
233-
if (node.pathStr === selectedNode.pathStr || node.pathStr === this.lastSelectedNode.pathStr) {
233+
if (node.pathStr === clickedNode.pathStr || node.pathStr === this.lastSelectedNode.pathStr) {
234234
nodeModel.isSelected = node.isSelectable
235235
shiftSelectionStarted = !shiftSelectionStarted
236236
}
@@ -245,10 +245,10 @@ export default {
245245
}
246246
}, newNodes)
247247

248-
this.lastSelectedNode = selectedNode
248+
this.lastSelectedNode = clickedNode
249249
this.emitInput(newNodes)
250250
this.emitSelect(selectedNodes, event)
251-
return selectedNode
251+
return clickedNode
252252
},
253253
onMousemoveHandler (event) {
254254
if (!this.isRoot) {

0 commit comments

Comments
 (0)