fix(tests): revert change in marker_svg to keep keyboard nav tests working (#6457)

This commit is contained in:
Rachel Fenichel
2022-09-30 08:03:13 -07:00
committed by GitHub
parent 852e48a74b
commit dd0d0f6bcf

View File

@@ -181,7 +181,8 @@ export class MarkerSvg {
// Ensures the marker will be visible immediately after the move.
const animate = this.currentMarkerSvg!.childNodes[0];
if (animate !== undefined) {
animate instanceof SVGAnimationElement && animate.beginElement();
(animate as SVGAnimationElement).beginElement &&
(animate as SVGAnimationElement).beginElement();
}
}