Fix issue [#17949]
This commit is contained in:
haimrait 2019-07-29 16:58:38 +03:00 committed by GitHub
parent f41e013ce5
commit 37d19cef3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');