From 141248be969aa0aac2219959f6e2ec8a56a67e5d Mon Sep 17 00:00:00 2001 From: Mutasem Date: Mon, 8 Nov 2021 10:25:41 +0100 Subject: [PATCH] fix lasso tool selection --- packages/editor-ui/src/components/mixins/mouseSelect.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/editor-ui/src/components/mixins/mouseSelect.ts b/packages/editor-ui/src/components/mixins/mouseSelect.ts index 505592b87f..f6c0d06ac4 100644 --- a/packages/editor-ui/src/components/mixins/mouseSelect.ts +++ b/packages/editor-ui/src/components/mixins/mouseSelect.ts @@ -154,6 +154,10 @@ export const mouseSelect = mixins( this.nodeSelected(node); }); + if (selectedNodes.length === 1) { + this.$store.commit('setLastSelectedNode', selectedNodes[0].name); + } + this.hideSelectBox(); }, mouseMoveSelect (e: MouseEvent) {