prevented end date from ever going earlier than today
This commit is contained in:
@@ -121,7 +121,7 @@ const minEndDate = computed(() => {
|
||||
if (values.start_date) {
|
||||
return new CalendarDate(values.start_date.getFullYear(), values.start_date.getMonth() + 1, values.start_date.getDate())
|
||||
} else {
|
||||
return null;
|
||||
return today(getLocalTimeZone());
|
||||
}
|
||||
})
|
||||
|
||||
@@ -141,7 +141,7 @@ const minStartDate = computed(() => {
|
||||
let start = new CalendarDate(endDateObj.getFullYear(), endDateObj.getMonth() + 1, endDateObj.getDate())
|
||||
return td.compare(start) > 0 ? td : start;
|
||||
} else {
|
||||
return null;
|
||||
return today(getLocalTimeZone());
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user