mirror of
https://github.com/google/blockly.git
synced 2026-01-04 23:50:12 +01:00
Merge pull request #7859 from BeksOmega/fix/previewer-disposing
fix: connection previewer disposing too early
This commit is contained in:
@@ -382,7 +382,6 @@ export class BlockDragger implements IBlockDragger {
|
|||||||
|
|
||||||
blockAnimation.disconnectUiStop();
|
blockAnimation.disconnectUiStop();
|
||||||
this.connectionPreviewer.hidePreview();
|
this.connectionPreviewer.hidePreview();
|
||||||
this.connectionPreviewer.dispose();
|
|
||||||
|
|
||||||
const preventMove =
|
const preventMove =
|
||||||
!!this.dragTarget_ &&
|
!!this.dragTarget_ &&
|
||||||
@@ -417,6 +416,9 @@ export class BlockDragger implements IBlockDragger {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Must dispose after `updateBlockAfterMove_` is called to not break the
|
||||||
|
// dynamic connections plugin.
|
||||||
|
this.connectionPreviewer.dispose();
|
||||||
this.workspace_.setResizesEnabled(true);
|
this.workspace_.setResizesEnabled(true);
|
||||||
|
|
||||||
eventUtils.setGroup(false);
|
eventUtils.setGroup(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user