From 344861698e65c3fc5f05db000c01cff2155f56ff Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Wed, 6 Sep 2023 10:11:36 -0700 Subject: [PATCH] fix: connection highlight not disposed when block deleted (#7454) --- core/rendered_connection.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/rendered_connection.ts b/core/rendered_connection.ts index 24813feab..3a1c32385 100644 --- a/core/rendered_connection.ts +++ b/core/rendered_connection.ts @@ -93,6 +93,10 @@ export class RenderedConnection extends Connection { if (this.trackedState === RenderedConnection.TrackedState.TRACKED) { this.db.removeConnection(this, this.y); } + if (this.highlightPath) { + dom.removeNode(this.highlightPath); + this.highlightPath = null; + } } /**