From 6beca12e11148c8a405b14686f4b99e23f31dc67 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 30 Dec 2023 17:15:54 +0100 Subject: [PATCH] fix: fix tooltip of tempchart (#1715) * fix: fix theme issue in tempchart Signed-off-by: Stefan Dej * fix: fix tooltip of tempchart the tooltip will not go away after 1 second. the chart also will be "stopped" as long as your mouse is hoverd Signed-off-by: Stefan Dej * refactor: remove debug outputs Signed-off-by: Stefan Dej --------- Signed-off-by: Stefan Dej --- src/components/charts/TempChart.vue | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/components/charts/TempChart.vue b/src/components/charts/TempChart.vue index 530fe1835..80fa415aa 100644 --- a/src/components/charts/TempChart.vue +++ b/src/components/charts/TempChart.vue @@ -6,7 +6,9 @@ :init-options="{ renderer: 'svg' }" :autoresize="true" :style="tempchartStyle" - class="tempchart" /> + class="tempchart" + @mouseenter.native="hoverChart = true" + @mouseleave.native="hoverChart = false" />