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
This commit is contained in:
Robert Knight
2026-05-20 21:36:17 +01:00
committed by GitHub
parent b996259a0d
commit d7172452e2
+1 -1
View File
@@ -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;