From d7172452e2ba2f36cac2a682ce293a2b0bde2fa5 Mon Sep 17 00:00:00 2001 From: Robert Knight <95928279+microbit-robert@users.noreply.github.com> Date: Wed, 20 May 2026 21:36:17 +0100 Subject: [PATCH] fix: Don't prepend "begin stack" to blocks inserted from the flyout (#9911) * fix: Don't prepend "begin stack" to blocks inserted from the flyout * Switch block.workspace.isDragging for block.isDragging --- packages/blockly/core/block_aria_composer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/blockly/core/block_aria_composer.ts b/packages/blockly/core/block_aria_composer.ts index 13ecc8da6..a87e35051 100644 --- a/packages/blockly/core/block_aria_composer.ts +++ b/packages/blockly/core/block_aria_composer.ts @@ -258,7 +258,7 @@ function getParentInputLabel(block: BlockSvg) { function getBeginStackLabel(block: BlockSvg) { // Don't include the "begin stack" label for blocks that are moving // or blocks in the flyout - if (block.isInFlyout || block.workspace.isDragging()) return undefined; + if (block.isInFlyout || block.isDragging()) return undefined; return block.getRootBlock() === block ? Msg['BLOCK_LABEL_BEGIN_STACK'] : undefined;