Modal won't display from Infolist

I have an Infolist I'm rendering in a Livewire component. I have this action defined:
TextEntry::make('name')
->icon('heroicon-m-user')
->hintAction(
Action::make('copyName')
->icon('heroicon-m-clipboard')
->requiresConfirmation()
->action(function ($record) {
ray('hi');
}),
TextEntry::make('name')
->icon('heroicon-m-user')
->hintAction(
Action::make('copyName')
->icon('heroicon-m-clipboard')
->requiresConfirmation()
->action(function ($record) {
ray('hi');
}),
Infolist renders fine, no errors in the console or PHP-side. I'm not sure what I'm doing wrong. I click the button and no modal appears, and the action isn't run. What am I missing here?
Solution:
Add <x-filament-actions::modals />...
Jump to solution
5 Replies
LeandroFerreira
LeandroFerreira6mo ago
Are you using panel builder or infolist builder?
bennett
bennett6mo ago
Infolist builder
Solution
LeandroFerreira
LeandroFerreira6mo ago
Add <x-filament-actions::modals />
bennett
bennett6mo ago
That did the trick! Is that listed in the docs? Ahh its listed in the action docs. I was looking exclusively in the infolist docs Thanks for the help