F
Filamentoliviergu

RelationManager table action not working

In a RelationManager, the following action works as a header action, but not as a row action. Clicking on it triggers a quick spinner and nothing happens. There isn't any messages in the console. Any idea of what would be the cause or how to debug this? Thanks!
Tables\Actions\Action::make('foo')
->action(fn() => dd('foo')),
Tables\Actions\Action::make('foo')
->action(fn() => dd('foo')),
O
oliviergu13d ago
It works when setting a URL, if that helps pinpoint the problem
Tables\Actions\Action::make('foo')
->url('http://example.com', shouldOpenInNewTab: true)
Tables\Actions\Action::make('foo')
->url('http://example.com', shouldOpenInNewTab: true)
After many more tests, I noticed they worked on another similar object (with the same relation). My best guess is that the row actions don't work if there're multiple id in the query's results.