From 6eabe004d6570bb29dfc0a9dbff3a634d27eb627 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Thu, 7 May 2026 08:52:51 -0700 Subject: [PATCH] fix: Fix bug that could cause unintend block movements (#9818) --- packages/blockly/core/block_svg.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/blockly/core/block_svg.ts b/packages/blockly/core/block_svg.ts index 78baf0063..7291f4860 100644 --- a/packages/blockly/core/block_svg.ts +++ b/packages/blockly/core/block_svg.ts @@ -1893,7 +1893,8 @@ export class BlockSvg onNodeFocus(): void { this.recomputeAriaAttributes(); this.select(); - if (getFocusManager().getFocusedNode() !== this) { + const focusedNode = getFocusManager().getFocusedNode(); + if (focusedNode && focusedNode !== this) { renderManagement.finishQueuedRenders().then(() => { this.workspace.scrollBoundsIntoView( this.getBoundingRectangleWithoutChildren(),