Database notifications panel stays open after clicking ->url() notification action in spa mode
I recently enabled spa mode on my filament admin panel, where I have noticed that the database notifications panel stays open after navigating to a resource page from a notification url action. Also it seems like the css sometimes (at random it) does some weird stuff causing some elements in the navigation sidebar to flash when clicking the notification action buttons.
I have attached a screen recording of the issue.
And here is the code for how one of these notifications are created:
Is this how it is supposed to be, or is this a bug?
Solution:Jump to solution
The bug is spa mode. All it does is set the wire:navigate on links. You would have to explicitly tell every action to close the modal with a live event listener. Long story short spa mode in livewire isn’t solid yet and if you need an actual spa then you need to build one. Otherwise let livewire do what it does. 😅
2 Replies
Solution
The bug is spa mode. All it does is set the wire:navigate on links. You would have to explicitly tell every action to close the modal with a live event listener. Long story short spa mode in livewire isn’t solid yet and if you need an actual spa then you need to build one. Otherwise let livewire do what it does. 😅
Alright, I will disable spa mode again then 😄
Thanks!