mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-03 03:38:41 +08:00
fix(date-picker): date-picker focus end-time resets start-time (#2290)
This commit is contained in:
parent
74d03dd173
commit
88a327fa4f
@ -527,6 +527,8 @@ export default defineComponent({
|
||||
|
||||
if (!maxDate.value || maxDate.value.isBefore(minDate.value)) {
|
||||
maxDate.value = minDate.value
|
||||
rightDate.value = maxDate.value
|
||||
rightDate.value = rightDate.value.add(1, 'month')
|
||||
}
|
||||
}
|
||||
|
||||
@ -543,6 +545,7 @@ export default defineComponent({
|
||||
|
||||
if (maxDate.value && maxDate.value.isBefore(minDate.value)) {
|
||||
minDate.value = maxDate.value
|
||||
leftDate.value = minDate.value
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user