Skip to content

Commit

Permalink
fix(pasttimepicker): fix onclear
Browse files Browse the repository at this point in the history
  • Loading branch information
YanHui committed Jul 4, 2024
1 parent 2ff2512 commit eed2396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/past-time-picker/PastTimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const PastTimePicker = (props: PastTimePickerProps) => {

const [controlledVisible, setControlledVisible] = useControlledState(popoverVisible, false);

const [timeRange, setTimeRange] = useControlledState<string | undefined | null>(value, undefined);
const [timeRange, setTimeRange] = useControlledState<string | undefined>(value, undefined);

const QUICK_MAPPING = {
'day:1,0': todayText,
Expand Down

0 comments on commit eed2396

Please sign in to comment.