From db19eb27087d2af75758327375f6b3887804cd21 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 13 Aug 2025 15:35:53 +0200 Subject: [PATCH] fixes --- components/CreateEventDialog.vue | 13 ++++++-- pages/dashboard/events.vue | 53 +++++++++++++++++++------------- server/api/events/index.get.ts | 12 ++++++-- server/utils/nocodb-events.ts | 51 ++++++++++++++++++++++++------ 4 files changed, 95 insertions(+), 34 deletions(-) diff --git a/components/CreateEventDialog.vue b/components/CreateEventDialog.vue index 95f0fe6..93daebf 100644 --- a/components/CreateEventDialog.vue +++ b/components/CreateEventDialog.vue @@ -92,10 +92,12 @@ placeholder="Select start date and time" :enable-time-picker="true" :is-24="true" - auto-apply + :auto-apply="false" + :action-row="{ showSelect: true, showCancel: true, showNow: false, showPreview: true }" :clearable="false" :required="true" @update:model-value="handleStartDateUpdate" + @closed="onDatePickerClosed" /> @@ -113,11 +115,13 @@ placeholder="Select end date and time" :enable-time-picker="true" :is-24="true" - auto-apply + :auto-apply="false" + :action-row="{ showSelect: true, showCancel: true, showNow: false, showPreview: true }" :clearable="false" :required="true" :min-date="startDateModel" @update:model-value="handleEndDateUpdate" + @closed="onDatePickerClosed" /> @@ -487,6 +491,11 @@ const handleEndDateUpdate = (date: Date | null) => { } }; +const onDatePickerClosed = () => { + console.log('[CreateEventDialog] Date picker closed'); + // This handler ensures the date picker behaves correctly on mobile and desktop +}; + // Methods const resetForm = () => { eventData.title = ''; diff --git a/pages/dashboard/events.vue b/pages/dashboard/events.vue index 0ffc83f..43f08a9 100644 --- a/pages/dashboard/events.vue +++ b/pages/dashboard/events.vue @@ -170,7 +170,7 @@ @@ -178,7 +178,7 @@