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) {