diff --git a/resources/js/filament-fullcalendar.js b/resources/js/filament-fullcalendar.js index 1fe25c9..581983e 100644 --- a/resources/js/filament-fullcalendar.js +++ b/resources/js/filament-fullcalendar.js @@ -63,7 +63,7 @@ export default function fullcalendar({ revert() } }, - datesSet: ({ + datesSet: async({ start: s, end: e, startStr: ss, @@ -71,7 +71,7 @@ export default function fullcalendar({ timeZone: t, view: v }) => { - this.$wire.getActiveGrid({start: s,end: e, startStr: ss, endStr: es, timeZone: t, view: v}) + await this.$wire.getActiveGrid({start: s,end: e, startStr: ss, endStr: es, timeZone: t, view: v}) }, eventResize: async ({ event, oldEvent, relatedEvents, startDelta, endDelta, revert }) => { const shouldRevert = await this.$wire.onEventResize(event, oldEvent, relatedEvents, startDelta, endDelta) diff --git a/src/Widgets/Concerns/InteractsWithEvents.php b/src/Widgets/Concerns/InteractsWithEvents.php index f6f0182..90a313b 100644 --- a/src/Widgets/Concerns/InteractsWithEvents.php +++ b/src/Widgets/Concerns/InteractsWithEvents.php @@ -121,4 +121,9 @@ protected function calculateTimezoneOffset(string $start, ?string $end, bool $al return [$start, $end, $allDay]; } + + public function getActiveGrid($data){ + + return $data; + } }