© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2mo ago•
4 replies
Veur

Action works in a Table, but not as standalone Action

Actions✅ SolvedTable builder4️⃣v4
I have this Action in my Livewire component:
public function createAction(): Action
{
    return Action::make('testing')
        ->action(fn () => $this->dispatch('testing'));
}
public function createAction(): Action
{
    return Action::make('testing')
        ->action(fn () => $this->dispatch('testing'));
}


There is also a Table in that component, and the action is loaded as empty state action:
->emptyStateActions([$this->createAction()])
->emptyStateActions([$this->createAction()])


It's also rendered in the Blade view of the component:
<div x-data x-on:testing.window="alert('test')">
    {{ $this->createAction }}
</div>
<div x-data x-on:testing.window="alert('test')">
    {{ $this->createAction }}
</div>


But the Action only works in the empty state of the Table, not as the standalone Action. When I click it, there is a network request, but the event is not dispatched. Any ideas?
Solution
The name should be create not testing.
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Standalone action not hiding
FilamentFFilament / ❓┊help
3y ago
action method not working on a standalone Action
FilamentFFilament / ❓┊help
3y ago
Standalone Table with Row Actions not working
FilamentFFilament / ❓┊help
3y ago
Display Action Text in Table as Button
FilamentFFilament / ❓┊help
3y ago