Skip to content

Commit

Permalink
fix: hover event target IE fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
dbluhm committed Nov 15, 2020
1 parent b523565 commit 9ee5002
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/fx/hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ function _hover(gd, evt, subplot, noHoverEvent) {
// Discover event target, traversing open shadow roots.
var target = evt.composedPath && evt.composedPath()[0];
if(!target) {
return;
// Fallback for browsers not supporting composedPath
target = evt.target;
}
var dbb = target.getBoundingClientRect();

Expand Down

0 comments on commit 9ee5002

Please sign in to comment.