mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +08:00
Fix ts error
This commit is contained in:
parent
b49c0ac35c
commit
7a98f6236f
@ -97,7 +97,7 @@ export default class RangePicker extends React.Component<any, any> {
|
|||||||
handleChange = (value: moment.Moment[]) => {
|
handleChange = (value: moment.Moment[]) => {
|
||||||
const props = this.props;
|
const props = this.props;
|
||||||
if (!('value' in props)) {
|
if (!('value' in props)) {
|
||||||
this.setState(({ showDate }) => ({
|
this.setState(({ showDate }: { showDate: boolean }) => ({
|
||||||
value,
|
value,
|
||||||
showDate: getShowDateFromValue(value) || showDate,
|
showDate: getShowDateFromValue(value) || showDate,
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user