fix: Drill to detail blocked by tooltip (#22082)

Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
This commit is contained in:
Michael S. Molina
2022-11-23 14:50:06 -05:00
committed by GitHub
parent 1809d2b957
commit 3bc0865d90
45 changed files with 572 additions and 255 deletions

View File

@@ -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(() => {