Skip to content

Commit

Permalink
fix(echarts): dispose echarts instance #18
Browse files Browse the repository at this point in the history
closed #18
  • Loading branch information
qiuweikangdev committed Dec 8, 2022
1 parent b2980d9 commit a469d3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/echarts/src/core/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ const Echarts: ForwardRefRenderFunction<EchartsHandle, EChartsProps> = (

// 销毁echarts实例
const dispose = () => {
if (canvasRef.current) {
echarts?.dispose(canvasRef.current)
if (chartRef.current) {
echarts?.dispose(chartRef.current)
}
}

Expand Down

0 comments on commit a469d3e

Please sign in to comment.