From c84ef5d9bd3b424e48a97395c67dcf393d29e760 Mon Sep 17 00:00:00 2001 From: Vasyka Date: Thu, 28 May 2026 22:58:55 +0000 Subject: [PATCH] fix: calendar collapses to plain text after first render FullCalendar mounts into a Livewire-managed subtree. The first $wire.getEvents() response triggered a Livewire DOM morph that reverted #autocrm-calendar to its empty server HTML, destroying the rendered grid (~1s after load it became unstyled text). Wrap the calendar container in wire:ignore so Livewire's morphdom skips it. The quick-create modal stays outside wire:ignore to keep its form reactive. Co-Authored-By: Claude Opus 4.7 (1M context) --- resources/views/filament/tenant/pages/calendar.blade.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/views/filament/tenant/pages/calendar.blade.php b/resources/views/filament/tenant/pages/calendar.blade.php index 10bbaa4..cfeb847 100644 --- a/resources/views/filament/tenant/pages/calendar.blade.php +++ b/resources/views/filament/tenant/pages/calendar.blade.php @@ -113,7 +113,10 @@ x-on:open-create-modal.window="document.getElementById('cal-modal-bg').classList.add('open')" x-on:close-create-modal.window="document.getElementById('cal-modal-bg').classList.remove('open')" > -
+ {{-- wire:ignore: keep Livewire's DOM-morph away from the FullCalendar + subtree, otherwise the first $wire.getEvents response reverts the + container to its empty server HTML and the calendar collapses. --}} +