mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
fix: minDate导致日期视图错误问题 (#2459)
This commit is contained in:
parent
6aa492309e
commit
86ccc4267d
@ -72,7 +72,7 @@ class BaseDatePicker extends ReactDatePicker {
|
||||
const props = origin.call(this);
|
||||
props.setDateTimeState = this.setState.bind(this);
|
||||
|
||||
if (this.props.minDate) {
|
||||
if ((this.props.minDate as moment.Moment)?.isValid()) {
|
||||
props.viewDate = this.props.minDate;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user