Skip to content

Commit c411f58

Browse files
committed
fix(useRange): specify event type for onClear callback
1 parent 0789c06 commit c411f58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/date-picker/hooks/useRange.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default function useRange(props: TdDateRangePickerProps) {
7777
e.stopPropagation();
7878
handlePopupInvisible();
7979
onChange([], { dayjsValue: [], trigger: 'clear' });
80-
props.onClear?.({ e });
80+
props.onClear?.({ e: e as React.MouseEvent<SVGSVGElement, MouseEvent> });
8181
},
8282
onBlur: (newVal: string[], { e, position }) => {
8383
props.onBlur?.({ value: newVal, partial: PARTIAL_MAP[position], e });

0 commit comments

Comments
 (0)