We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9553073 commit f9e222fCopy full SHA for f9e222f
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