mirror of
https://github.com/google/blockly.git
synced 2026-04-27 23:50:21 +02:00
fix: Fix bug that caused blocks to become disconnected when undoing deletions (#9636)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user