diff --git a/resources/views/filament/partials/notifications-refresh.blade.php b/resources/views/filament/partials/notifications-refresh.blade.php index 62e70a9..b1059e1 100644 --- a/resources/views/filament/partials/notifications-refresh.blade.php +++ b/resources/views/filament/partials/notifications-refresh.blade.php @@ -15,12 +15,18 @@ } succeed(() => { - if (window.Livewire?.dispatchTo) { - window.Livewire.dispatchTo('notifications', 'notificationsSent'); - return; + const dispatchTo = window.Livewire?.dispatchTo; + if (dispatchTo) { + ['notifications', 'filament.notifications', 'filament-notifications'].forEach((name) => { + try { + dispatchTo(name, 'notificationsSent'); + } catch (error) { + // ignore missing component names + } + }); } - window.Livewire.dispatch('notificationsSent'); + window.Livewire?.dispatch?.('notificationsSent'); }); }); };