mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
fix: Drill to detail blocked by tooltip (#22082)
Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
This commit is contained in:
committed by
GitHub
parent
1809d2b957
commit
3bc0865d90
@@ -42,10 +42,15 @@ function Echart(
|
||||
eventHandlers,
|
||||
zrEventHandlers,
|
||||
selectedValues = {},
|
||||
refs,
|
||||
}: EchartsProps,
|
||||
ref: React.Ref<EchartsHandler>,
|
||||
) {
|
||||
const divRef = useRef<HTMLDivElement>(null);
|
||||
if (refs) {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
refs.divRef = divRef;
|
||||
}
|
||||
const chartRef = useRef<ECharts>();
|
||||
const currentSelection = useMemo(
|
||||
() => Object.keys(selectedValues) || [],
|
||||
@@ -106,6 +111,7 @@ function Echart(
|
||||
// did mount
|
||||
useEffect(() => {
|
||||
handleSizeChange({ width, height });
|
||||
return () => chartRef.current?.dispose();
|
||||
}, []);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user