mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 04:48:32 +08:00
修复日期重置到当月第一天的问题
This commit is contained in:
parent
2a7212bff8
commit
d89dce3e53
@ -94,7 +94,7 @@ export class CustomDaysView extends DaysView {
|
|||||||
};
|
};
|
||||||
|
|
||||||
confirm = () => {
|
confirm = () => {
|
||||||
const date = this.props.viewDate.clone();
|
const date = (this.props.selectedDate || this.props.viewDate).clone();
|
||||||
|
|
||||||
this.props.setDateTimeState({
|
this.props.setDateTimeState({
|
||||||
selectedDate: date
|
selectedDate: date
|
||||||
|
Loading…
Reference in New Issue
Block a user