diff --git a/components/date-picker/RangePicker.tsx b/components/date-picker/RangePicker.tsx index 2dc11369fe..0b4b56ea0c 100644 --- a/components/date-picker/RangePicker.tsx +++ b/components/date-picker/RangePicker.tsx @@ -97,7 +97,7 @@ export default class RangePicker extends React.Component { handleChange = (value: moment.Moment[]) => { const props = this.props; if (!('value' in props)) { - this.setState(({ showDate }) => ({ + this.setState(({ showDate }: { showDate: boolean }) => ({ value, showDate: getShowDateFromValue(value) || showDate, }));