Skip to content

Commit 92c73f6

Browse files
authored
fix: Fix bug that caused blocks to become disconnected when undoing deletions (#9636)
1 parent 5239bde commit 92c73f6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

packages/blockly/core/connection.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,7 @@ export class Connection {
291291
}
292292

293293
let event;
294-
if (
295-
eventUtils.isEnabled() &&
296-
!childConnection.getSourceBlock().isDeadOrDying()
297-
) {
294+
if (eventUtils.isEnabled()) {
298295
event = new (eventUtils.get(EventType.BLOCK_MOVE))(
299296
childConnection.getSourceBlock(),
300297
) as BlockMove;

0 commit comments

Comments
 (0)