From 11ba85054b3f8a65feaebfe430b5f3cc85f41033 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Mon, 30 Mar 2026 17:15:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F=EF=BC=8C=E4=BF=AE=E5=A4=8D=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=EF=BC=8C=E8=BD=AE=E6=92=AD=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=9C=A8=E5=B7=A6=E4=B8=8A=E8=A7=92=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/g2plot_tooltip_carousel.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/js/g2plot_tooltip_carousel.ts b/core/core-frontend/src/views/chart/components/js/g2plot_tooltip_carousel.ts index af92562b8b..5fe4114bff 100644 --- a/core/core-frontend/src/views/chart/components/js/g2plot_tooltip_carousel.ts +++ b/core/core-frontend/src/views/chart/components/js/g2plot_tooltip_carousel.ts @@ -442,7 +442,10 @@ class ChartCarouselTooltip { public hasParentWithSwitchHidden(element: HTMLElement) { let parent = element.parentElement while (parent) { - if (parent.classList.contains('switch-hidden')) { + if ( + parent.classList.contains('switch-hidden') || + window.getComputedStyle(parent).display === 'none' + ) { return true } parent = parent.parentElement