Skip to content

Commit 1e14582

Browse files
authored
chore: update value type (#718)
1 parent 9fa85d5 commit 1e14582

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PickerInput/RangePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export interface BaseRangePickerProps<DateType extends object>
5656
separator?: React.ReactNode;
5757

5858
// Value
59-
value?: RangeValueType<DateType>;
59+
value?: RangeValueType<DateType> | null;
6060
defaultValue?: RangeValueType<DateType>;
6161
onChange?: (dates: RangeValueType<DateType>, dateStrings: [string, string]) => void;
6262
onCalendarChange?: (

src/PickerInput/SinglePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export interface BasePickerProps<DateType extends object = any>
4545
maxTagCount?: number | 'responsive';
4646

4747
// Value
48-
value?: DateType | DateType[];
48+
value?: DateType | DateType[] | null;
4949
defaultValue?: DateType | DateType[];
5050
onChange?: (date: DateType | DateType[], dateString: string | string[]) => void;
5151
onCalendarChange?: (

0 commit comments

Comments
 (0)