17782: Typing fixes on cwl-svg.
[arvados-workbench2.git] / src / lib / cwl-svg / plugins / edge-hover / edge-hover.ts
index c36343c8c9584a56ae91b2eaabeb8c0fbf3a089c..01f1ad545b0ce9da6b0fe8fc5e26820ac967ac67 100644 (file)
@@ -31,9 +31,9 @@ export class SVGEdgeHoverPlugin extends PluginBase {
 
 
         // Ignore if we did not enter an edge
-        if (!ev.srcElement!.classList.contains("edge")) return;
+        if (!(ev.target! as Element).classList.contains("edge")) return;
 
-        const target = ev.srcElement as SVGGElement;
+        const target = ev.target as SVGGElement;
         let tipEl: SVGGElement;
 
         const onMouseMove = ((ev: MouseEvent) => {