Commit 55617e0d authored by Leslie's avatar Leslie Committed by 杨奕

DatetimePicker: fix max time error when init value is empty (#8336)

1.no init data
2.click start time and comfirm
3.click end time and comfirm(the end time is not change)
4.error
reason:
not evaluate 'maxDate' value in step1
I will show more details in conversation
parent e0333136
......@@ -508,7 +508,7 @@
this.minTimePickerVisible = visible;
}
if (this.maxDate && this.maxDate.getTime() < this.minDate.getTime()) {
if (!this.maxDate || this.maxDate && this.maxDate.getTime() < this.minDate.getTime()) {
this.maxDate = new Date(this.minDate);
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment