Actions in table column view not triggering

Hi,

TLDR; Action in table ViewColumn doesn't do anything when clicked

I've got a ManageRelatedRecords page - lets call it "Activity". On my activity page I have a table that displays rows of items that can be of different types. One of the columns is a ViewColumn and depending on the type, it shows different content in the view.

In that view, I have an action to view more info. I've followed the docs here: https://filamentphp.com/docs/3.x/actions/adding-an-action-to-a-livewire-component#adding-the-action and my action appears on screen, but when I click it, nothing happens.

In my table:
ViewColumn::make('description')->view('filament.tables.columns.activity-details')


In the ManageRelatedRecords page I have my action
 public function viewMoreDetailsAction(): Action
{
    return Action::make('view_more_details')->action(fn() => info('Bob'));
}


In my activity-details view I have
<div class="mt-4">
  {{ $this->viewMoreDetailsAction }}
  <x-filament-actions::modals />
</div>


I've spent a while debugging this but I'm at a loss as to why it's not working. Any help appreciated

Cheers
Solution
This might be stupid, but can you rename your action to Action::make('viewMoreDetails') ?
Was this page helpful?