We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45da5f7 commit 89f6db3Copy full SHA for 89f6db3
1 file changed
pxtblocks/fields/field_animation.ts
@@ -236,7 +236,7 @@ export class FieldAnimationEditor extends FieldAssetEditor<FieldAnimationOptions
236
onDispose() {
237
super.onDispose();
238
239
- const root = (this.sourceBlock_ as Blockly.BlockSvg)?.getSvgRoot();
+ const root = (this.sourceBlock_ as Blockly.BlockSvg)?.getSvgRoot?.();
240
if (root) {
241
root.removeEventListener("mouseenter", this.onMouseEnter);
242
root.removeEventListener("mouseleave", this.cancelAnimation);
0 commit comments