feat(DateRangeCollapse): auto-detect all-day setting for transportation and lodging types
This commit is contained in:
@@ -51,6 +51,11 @@
|
|||||||
let isEditing = false; // Disable reactivity when editing
|
let isEditing = false; // Disable reactivity when editing
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
|
// Auto-detect all-day for transportation and lodging types
|
||||||
|
if ((type === 'transportation' || type === 'lodging') && utcStartDate) {
|
||||||
|
allDay = isAllDay(utcStartDate);
|
||||||
|
}
|
||||||
|
|
||||||
// Initialize UTC dates
|
// Initialize UTC dates
|
||||||
localStartDate = updateLocalDate({
|
localStartDate = updateLocalDate({
|
||||||
utcDate: utcStartDate,
|
utcDate: utcStartDate,
|
||||||
|
|||||||
Reference in New Issue
Block a user