mirror of
https://github.com/google/blockly.git
synced 2026-06-02 09:20:06 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user