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

This commit is contained in:
2betop 2020-08-11 16:46:23 +08:00
parent 9f913d2567
commit f6ae7ffaf3
1 changed files with 1 additions and 1 deletions

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