mirror of
https://github.com/dataease/dataease.git
synced 2026-06-10 23:09:59 +08:00
fix(图表): 数据大屏,修复隐藏图表,轮播提示显示在左上角的问题
This commit is contained in:
committed by
jianneng-fit2cloud
parent
cad602425e
commit
11ba85054b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user