Skip to content

Commit 9ee5002

Browse files
committed
fix: hover event target IE fallback
1 parent b523565 commit 9ee5002

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/fx/hover.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,8 @@ function _hover(gd, evt, subplot, noHoverEvent) {
336336
// Discover event target, traversing open shadow roots.
337337
var target = evt.composedPath && evt.composedPath()[0];
338338
if(!target) {
339-
return;
339+
// Fallback for browsers not supporting composedPath
340+
target = evt.target;
340341
}
341342
var dbb = target.getBoundingClientRect();
342343

0 commit comments

Comments
 (0)