filament
filament copied to clipboard
Nested action in infolist won't be called
Package
filament/filament
Package Version
v4.2.0
Laravel Version
12.37.0
Livewire Version
No response
PHP Version
PHP 8.4
Problem description
In the following example, child Action won't be displayed or called.
class ViewAsset extends ViewRecord
{
...
public function infolist(Schema $schema): Schema {
return parent::infolist($schema)
->schema([
Action::make('parent')
->requiresConfirmation()
->extraModalFooterActions([
Action::make('child')
->requiresConfirmation()
->action(fn () => dd('Hello?'))
])
]);
}
}
See https://github.com/lairg99/filament-nested-action-problem/blob/main/app/Filament/Resources/Assets/Pages/ViewAsset.php
Expected behavior
Should open the confirmation modal or run the action.
Steps to reproduce
Checkout repo, seed db and call admin/assets/1. Then you don't able to call child action.
Reproduction repository (issue will be closed if this is not valid)
https://github.com/lairg99/filament-nested-action-problem
Relevant log output