From 810042c0820f6f45b3f4bc4088adbf8ac14f065e Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Mon, 16 Mar 2026 15:50:46 -0700 Subject: [PATCH] fix: Fix bug that caused blocks to become disconnected when undoing deletions --- 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 a55c2505915..a79b7b9b143 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;