From 506970ab3011bf7acd08207b061ad98321c9f752 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Fri, 2 Feb 2024 14:48:40 -0800 Subject: [PATCH] fix: destroy connection highlight when the connection is disposed (#7830) --- core/rendered_connection.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/rendered_connection.ts b/core/rendered_connection.ts index f66b64005..8953ec977 100644 --- a/core/rendered_connection.ts +++ b/core/rendered_connection.ts @@ -79,6 +79,7 @@ export class RenderedConnection extends Connection { if (this.trackedState === RenderedConnection.TrackedState.TRACKED) { this.db.removeConnection(this, this.y); } + this.sourceBlock_.pathObject.removeConnectionHighlight?.(this); } /**