We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0789c06 commit c411f58Copy full SHA for c411f58
packages/components/date-picker/hooks/useRange.tsx
@@ -77,7 +77,7 @@ export default function useRange(props: TdDateRangePickerProps) {
77
e.stopPropagation();
78
handlePopupInvisible();
79
onChange([], { dayjsValue: [], trigger: 'clear' });
80
- props.onClear?.({ e });
+ props.onClear?.({ e: e as React.MouseEvent<SVGSVGElement, MouseEvent> });
81
},
82
onBlur: (newVal: string[], { e, position }) => {
83
props.onBlur?.({ value: newVal, partial: PARTIAL_MAP[position], e });
0 commit comments