From 66e727838b9306112a38b000b3675b4cdfc8db8a Mon Sep 17 00:00:00 2001 From: roymondchen Date: Fri, 4 Nov 2022 19:46:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(editor):=20=E5=A4=9A=E9=80=89=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E5=86=8D=E5=8D=95=E9=80=89=E5=A4=9A=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E7=AC=AC=E4=B8=80=E4=B8=AA=E5=85=83=E7=B4=A0=EF=BC=8C?= =?UTF-8?q?=E5=A4=9A=E9=80=89=E7=8A=B6=E6=80=81=E6=B2=A1=E6=9C=89=E6=B8=85?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor/src/utils/stage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/utils/stage.ts b/packages/editor/src/utils/stage.ts index acc1da18..ff21ba75 100644 --- a/packages/editor/src/utils/stage.ts +++ b/packages/editor/src/utils/stage.ts @@ -46,7 +46,7 @@ export const useStage = (stageOptions: StageOptions) => { ]); stage.on('select', (el: HTMLElement) => { - if (`${editorService.get('node')?.id}` === el.id) return; + if (`${editorService.get('node')?.id}` === el.id && editorService.get('nodes').length === 1) return; editorService.select(el.id); });