diff --git a/src/components/calendar/DaysView.tsx b/src/components/calendar/DaysView.tsx index c68591c62..47a3a3c65 100644 --- a/src/components/calendar/DaysView.tsx +++ b/src/components/calendar/DaysView.tsx @@ -100,8 +100,8 @@ export class CustomDaysView extends DaysView { confirm = () => { let date = (this.props.selectedDate || this.props.viewDate).clone(); - // 如果 minDate 是可用的,且比当前日期早,则用 minDate - if (this.props.minDate?.isValid() && this.props.minDate?.isBefore(date)) { + // 如果 minDate 是可用的,且比当前日期晚,则用 minDate + if (this.props.minDate?.isValid() && this.props.minDate?.isAfter(date)) { date = this.props.minDate.clone(); }