From 6f8282654417e00e50c30fd16bf05e5d32019c63 Mon Sep 17 00:00:00 2001 From: Apoorvgarg-Creator Date: Tue, 31 Oct 2023 15:58:26 +0530 Subject: [PATCH] Fix: #7587 --- core/block_svg.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/block_svg.ts b/core/block_svg.ts index e175db56798..b8a7bf8fc9f 100644 --- a/core/block_svg.ts +++ b/core/block_svg.ts @@ -1184,6 +1184,10 @@ export class BlockSvg /* eslint-disable-next-line @typescript-eslint/no-this-alias */ let block: this | null = this; do { + const isDeadOrDying: boolean = block.isDeadOrDying(); + if(isDeadOrDying){ + break; + } const root = block.getSvgRoot(); const parent = root.parentNode; const childNodes = parent!.childNodes;