mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 04:48:32 +08:00
newState.value 可能没值
This commit is contained in:
parent
8c99dd1820
commit
358b7d429d
@ -371,7 +371,8 @@ export class DatePicker extends React.Component<DateProps, DatePickerState> {
|
||||
value: normalizeValue(props.value, props.format)
|
||||
};
|
||||
|
||||
newState.inputValue = newState.value.format(this.props.inputFormat) || '';
|
||||
newState.inputValue =
|
||||
newState.value?.format(this.props.inputFormat) || '';
|
||||
|
||||
this.setState(newState);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user