Skip to content

Commit 90e2dbd

Browse files
committed
Fix incorret event bounding + correct init disposal
1 parent e44b428 commit 90e2dbd

File tree

2 files changed

+202
-130
lines changed

2 files changed

+202
-130
lines changed

src/echart.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,11 @@ import { useECharts } from './use-echarts'
33

44
// Types
55
import type { UseEChartsOptions } from './use-echarts'
6+
import type { EChartsEventProp } from './events'
67
import type { FC, HTMLAttributes } from 'react'
78

8-
type ContainerProps = Omit<
9-
HTMLAttributes<HTMLDivElement>,
10-
| 'title'
11-
| 'onClick'
12-
| 'onDoubleClick'
13-
| 'onMouseDown'
14-
| 'onMouseMove'
15-
| 'onMouseOut'
16-
| 'onMouseOver'
17-
>
18-
export type EChartProps = ContainerProps & UseEChartsOptions
9+
export type EChartProps = UseEChartsOptions &
10+
Omit<HTMLAttributes<HTMLDivElement>, EChartsEventProp & UseEChartsOptions>
1911

2012
export const EChart: FC<EChartProps> = ({
2113
// Init

0 commit comments

Comments
 (0)