TableWidget modal not opening

I have a tablewidget with the following code:
TextColumn::make('contents')
    ->label('Inhoud')
    ->icon('heroicon-s-cube')
    ->action(Action::make('contents')
    ->action(fn (Colli $record) => $record->advance())
     ->modalContent(fn (Colli $record): View => view('filament.fields.shipment-table-contents', ['record' => $record]))
                    )
     ->limit(50),

According to the following docs that should be good: https://filamentphp.com/docs/3.x/actions/modals#custom-modal-content.
Only problem now is that no modal opens.
Was this page helpful?