Persistent Livewire Modal State Issue with Multiple Header Actions
Environment:
I have a Filament table with two
When I click the first action (e.g., Export), its modal opens correctly. However, after closing it, if I click the second action (the custom one), the first action’s (Export) modal opens again instead of its own. The same happens in reverse.
What Has Been Tried (Diagnostics):
- Filament Version:
3 - Laravel Version:
12 - PHP Version:
8.3
I have a Filament table with two
headerActions: a default ExportAction and a custom Action that opens a modal with a file upload form.When I click the first action (e.g., Export), its modal opens correctly. However, after closing it, if I click the second action (the custom one), the first action’s (Export) modal opens again instead of its own. The same happens in reverse.
What Has Been Tried (Diagnostics):
- Unique Names: We ensured both actions had unique names using
->make('unique-name'). The rendered HTML confirmed thewire:clickhandlers were correct (mountTableAction('export')andmountTableAction('searchSimilar')), but the issue persisted. - Inline Action: To completely eliminate any conflict with the custom class, we rewrote the action directly inside the
headerActionsarray within the Resource file. The issue still occurs even with this setup.