Also prevent accessing graph tooltip DOM elements if they are gone

This commit is contained in:
Johannes Zellner
2025-07-23 17:07:49 +02:00
parent b88885582d
commit 1831caea08
+2
View File
@@ -53,6 +53,8 @@ function createGraphOptions({ yscale, period, highMark }) {
tooltip: {
enabled: false,
external: function(context) {
if (!tooltipElem.value) return;
const tooltipModel = context.tooltip;
if (tooltipModel.opacity === 0) {
tooltipElem.value.style.opacity = 0;