filament icon indicating copy to clipboard operation
filament copied to clipboard

Nested action in infolist won't be called

Open lairg99 opened this issue 2 months ago • 0 comments

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


lairg99 avatar Nov 13 '25 05:11 lairg99