mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 06:09:34 +08:00
Merge pull request #17955 from haimrait/master
fix: DatePicker onChange types
This commit is contained in:
commit
d31d2c19d9
@ -32,7 +32,7 @@ export interface SinglePickerProps {
|
||||
defaultPickerValue?: moment.Moment;
|
||||
placeholder?: string;
|
||||
renderExtraFooter?: (mode: DatePickerMode) => React.ReactNode;
|
||||
onChange?: (date: moment.Moment, dateString: string) => void;
|
||||
onChange?: (date: moment.Moment | null, dateString: string) => void;
|
||||
}
|
||||
|
||||
const DatePickerModes = tuple('time', 'date', 'month', 'year', 'decade');
|
||||
|
Loading…
Reference in New Issue
Block a user