Issue with using an InfoList with Actions inside a modal action with custom modal content
So in my Filament 4 App I have a page with an action that opens a modal. The contents of the modal are rather unique and custom, so I am using modalContent() where I am passing a blade View and some actions from registerModalActions.
Now inside that Blade view for the modal I also need an InfoList. So i created a custom Livewire Component that renders that Infolist. This works perfectly. However, the InfoList also contains some Hint Actions for some of the fields. When I try to trigger these actions I get this error: Unable to call component method. Public method [mountAction] not found on component
Can anyone tell me what I need to adjust? It seems like this structure (Action > Modal > Blade View > Livewire Component > Infolist > Hint Action) seems a bit too complex for Filament 4? The thing is that all of this worked when I was still on Filament 3 with my app. So I am sure there must be a trick that I am missing to get this working in v4?
1 Reply
Never mind, looks like my custom livewire component also needed the HasActions and InteractsWithActions Interface/Trait!