Action in infolist does not show the form

I made some widgets that consist of just infolists.
At this point i'm trying to add an action to one of the TextEntries to allow the user to edit a field directly from the widget.

The infolist does show the action icon but the form for the action does not appear.
I am not sure anymore if my approach with widgets makes sense, though it seems like infolists are supported by Widgets.
As an expirement I also made a custom Livewire component with the Infolist, that resulted in the same outcome.

The (simplified) class of the widget looks like this:

<?php

class ServerDetails extends Widget implements HasInfolists
{
    use InteractsWithInfolists;

    protected static string $view = 'filament.resources.assets-object-resource.widgets.server-details';

    public Server $record;

    public function getObjectDetailsInfoListProperty(Infolist $infolist): Infolist
    {
        return $infolist
            ->record($this->record)
            ->name('Server details')
            ->schema([
                Section::make('Server details')
                    ->schema([
                        TextEntry::make('customer.name')
                            ->label(__('Customer'))
                            ->suffixActions([
                                Action::make('update')
                                    ->icon('heroicon-m-pencil-square')
                                    ->form([
                                        TextInput::make('name')
                                    ])
                                    ->action(function (array $data, $record): void {
                                        $record->name = $data['name'];
                                        $record->save();
                                    })
                            ])
                    ]),
            ]);
    }
}
image.png
Solution
public function getObjectDetailsInfoList(Infolist $infolist): Infolist
{
  ...
}


<x-filament-widgets::widget>
    {{ $this->getObjectDetailsInfoList }}
    <x-filament-actions::modals />
</x-filament-widgets::widget>
Was this page helpful?