Skip to content

Commit b523565

Browse files
committed
fix: eslint errors, add comment
1 parent 1dfc11b commit b523565

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
@@ -333,8 +333,9 @@ function _hover(gd, evt, subplot, noHoverEvent) {
333333
return;
334334
}
335335

336+
// Discover event target, traversing open shadow roots.
336337
var target = evt.composedPath && evt.composedPath()[0];
337-
if (!target) {
338+
if(!target) {
338339
return;
339340
}
340341
var dbb = target.getBoundingClientRect();

0 commit comments

Comments
 (0)