mirror of
https://github.com/google/blockly.git
synced 2025-12-15 13:50:08 +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();
|
||||
this.connectionPreviewer.hidePreview();
|
||||
this.connectionPreviewer.dispose();
|
||||
|
||||
const preventMove =
|
||||
!!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);
|
||||
|
||||
eventUtils.setGroup(false);
|
||||
|
||||
Reference in New Issue
Block a user