From 1c1121d4238fa72504211b1d68d199f76ba1bc08 Mon Sep 17 00:00:00 2001 From: Lucio Lelii Date: Mon, 16 Mar 2026 15:44:09 +0100 Subject: [PATCH] mode reset on window change --- src/app/shared/rete-editor/rete-editor.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/shared/rete-editor/rete-editor.ts b/src/app/shared/rete-editor/rete-editor.ts index 5499b02..2ef5b57 100644 --- a/src/app/shared/rete-editor/rete-editor.ts +++ b/src/app/shared/rete-editor/rete-editor.ts @@ -217,6 +217,10 @@ export class ReteEditor implements OnChanges, OnDestroy { if (!host) return; const currentVersion = ++this.loadVersion; + this.editorMode.set('standard'); + this.selectionPointerId = null; + this.selectionStart = null; + this.selectionBox.set(null); this.flowState.clearBlockSelection(); this.suppressDirtyEvents = true; this.rete?.area.destroy();