From a7d0ac8a137dcb8ea359b49de35af7a67bac9e84 Mon Sep 17 00:00:00 2001 From: Mike Harvey <43474485+mikeharv@users.noreply.github.com> Date: Mon, 11 May 2026 15:37:41 -0400 Subject: [PATCH] fix: always store initial drag connections --- packages/blockly/core/dragging/block_drag_strategy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/blockly/core/dragging/block_drag_strategy.ts b/packages/blockly/core/dragging/block_drag_strategy.ts index d8fc06f8e5e..0c39992279e 100644 --- a/packages/blockly/core/dragging/block_drag_strategy.ts +++ b/packages/blockly/core/dragging/block_drag_strategy.ts @@ -241,6 +241,7 @@ export class BlockDragStrategy implements IDragStrategy { blockAnimation.disconnectUiStop(); const healStack = this.shouldHealStack(e); + this.storeInitialConnections(healStack); if (this.shouldDisconnect(healStack)) { this.disconnectBlock(healStack); @@ -390,7 +391,6 @@ export class BlockDragStrategy implements IDragStrategy { * @param healStack Whether or not to heal the stack after disconnecting. */ private disconnectBlock(healStack: boolean) { - this.storeInitialConnections(healStack); this.block.unplug(healStack); blockAnimation.disconnectUiEffect(this.block); }