Table row action not working

Good morning, I have a filament table on a custom livewire page in which I want to put a row action. So I did just that according to the documentation. But when I click the action in the table it shows a short loading icon and then does nothing. What does work is if I put ->url('someurl')->openUrlInNewTab(). So it definitely triggers the action, but it doesn't reach the ->action() method for some reason.

I have a feeling it might have to do with that the results are based on a query and not a model. But I'm not sure. So any help would be appreciated.

The table query:

    public function table(Table $table): Table
    {
        return $table
            ->query(
                $this->team->members()->getQuery()
            )


The action:
->actions([                \Filament\Tables\Actions\Action::make('DissociateTeamMember')
->requiresConfirmation()
->hidden(!$this->isTeamAdmin)
->color('danger')
->icon('heroicon-o-x-mark')
->label('Teamlid verwijderen')
->action(function () {
    dd('test');
}),
])
Was this page helpful?