Skip to content

Commit

Permalink
Fix: #7587
Browse files Browse the repository at this point in the history
  • Loading branch information
Apoorvgarg-creator committed Oct 31, 2023
1 parent 7d2c307 commit 6f82826
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/block_svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6f82826

Please sign in to comment.