We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b714ef7 commit 0bea583Copy full SHA for 0bea583
1 file changed
packages/blockly/core/block_svg.ts
@@ -918,6 +918,14 @@ export class BlockSvg
918
Tooltip.dispose();
919
ContextMenu.hide();
920
921
+ if (animate) {
922
+ this.unplug(healStack);
923
+ blockAnimations.disposeUiEffect(this);
924
+ }
925
+
926
+ super.dispose(!!healStack);
927
+ dom.removeNode(this.svgGroup);
928
929
// If this block (or a descendant) was focused, focus its parent or
930
// workspace instead.
931
const focusManager = getFocusManager();
@@ -956,14 +964,6 @@ export class BlockSvg
956
964
}
957
965
958
966
959
-
960
- if (animate) {
961
- this.unplug(healStack);
962
- blockAnimations.disposeUiEffect(this);
963
- }
- super.dispose(!!healStack);
- dom.removeNode(this.svgGroup);
967
968
969
/**
0 commit comments