修复日期重置到当月第一天的问题

This commit is contained in:
2betop 2020-08-11 16:46:23 +08:00
parent 2a7212bff8
commit d89dce3e53

View File

@ -94,7 +94,7 @@ export class CustomDaysView extends DaysView {
};
confirm = () => {
const date = this.props.viewDate.clone();
const date = (this.props.selectedDate || this.props.viewDate).clone();
this.props.setDateTimeState({
selectedDate: date