mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 23:25:54 +08:00
fix: remove tooltip on chart cleanup (#4044)
This commit is contained in:
parent
4009ac83fe
commit
40090aaf12
@ -57,6 +57,13 @@ const Uplot = forwardRef<ToggleGraphProps | undefined, UplotProps>(
|
|||||||
chart.destroy();
|
chart.destroy();
|
||||||
chartRef.current = null;
|
chartRef.current = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// remove chart tooltip on cleanup
|
||||||
|
const overlay = document.getElementById('overlay');
|
||||||
|
|
||||||
|
if (overlay) {
|
||||||
|
overlay.style.display = 'none';
|
||||||
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const create = useCallback(() => {
|
const create = useCallback(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user