From 92c73f62c77880961d3ceda5262facebec6596ec Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Wed, 18 Mar 2026 10:10:37 -0700 Subject: [PATCH] fix: Fix bug that caused blocks to become disconnected when undoing deletions (#9636) --- packages/blockly/core/connection.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/blockly/core/connection.ts b/packages/blockly/core/connection.ts index a55c25059..a79b7b9b1 100644 --- a/packages/blockly/core/connection.ts +++ b/packages/blockly/core/connection.ts @@ -291,10 +291,7 @@ export class Connection { } let event; - if ( - eventUtils.isEnabled() && - !childConnection.getSourceBlock().isDeadOrDying() - ) { + if (eventUtils.isEnabled()) { event = new (eventUtils.get(EventType.BLOCK_MOVE))( childConnection.getSourceBlock(), ) as BlockMove;