From d227ec2c89b1a7a3f099877d22592f184b3c814d Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Wed, 22 Mar 2023 21:43:57 +0000 Subject: [PATCH] fix: remove forced rerender from mutator (#6918) (cherry picked from commit d897cdcf1d972f3af7804f7f4f9b5874ffb17f9c) --- core/mutator.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/core/mutator.ts b/core/mutator.ts index d5a051f52..58ce528e9 100644 --- a/core/mutator.ts +++ b/core/mutator.ts @@ -460,21 +460,7 @@ export class Mutator extends Icon { const block = this.getBlock(); const oldExtraState = BlockChange.getExtraBlockState_(block); - // Switch off rendering while the source block is rebuilt. - const savedRendered = block.rendered; - // TODO(#4288): We should not be setting the rendered property to false. - block.rendered = false; - - // Allow the source block to rebuild itself. block.compose!(this.rootBlock); - // Restore rendering and show the changes. - block.rendered = savedRendered; - // Mutation may have added some elements that need initializing. - block.initSvg(); - - if (block.rendered) { - block.render(); - } const newExtraState = BlockChange.getExtraBlockState_(block); if (oldExtraState !== newExtraState) {