mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Tooltip: Handle case where document.body
is the scrolling element (#91385)
* handle case where body is the scrolling element * use instanceof Node instead
This commit is contained in:
parent
2cccde932c
commit
66bfb31d8e
@ -580,7 +580,7 @@ export const TooltipPlugin2 = ({
|
||||
|
||||
const onscroll = (e: Event) => {
|
||||
updatePlotVisible();
|
||||
_isHovering && e.target instanceof HTMLElement && e.target.contains(_plot!.root) && dismiss();
|
||||
_isHovering && e.target instanceof Node && e.target.contains(_plot!.root) && dismiss();
|
||||
};
|
||||
|
||||
window.addEventListener('resize', updateWinSize);
|
||||
|
Loading…
Reference in New Issue
Block a user