Can't get extraModalFooterActions to work

Hi. I can't seem to get ->extraModalFooterActions working. When I use Filament\Forms\Components\Actions\Action I get an Typed property Filament\Forms\Components\Actions\Action::$component must not be accessed before initialization exception:

    {
        return $form
            ->schema([
                TextInput::make('test_input')
                    ->required(),

                Actions::make([
                    Action::make('test')
                        ->action(function () {
                            //
                        })
                        ->modal()
                        ->modalHeading('Test')
                        ->extraModalFooterActions([
                           \Filament\Forms\Components\Actions::make('extraActionTest')
                                ->requiresConfirmation()
                                ->action(function () {
                                    dd('test');
                                }),
                        ])
                    ])

            ]);
    }


And when I use Filament\Actions\Action the button appears but doesn't open a modal or execute the code in ->action():

    {
        return $form
            ->schema([
                TextInput::make('test_input')
                    ->required(),

                Actions::make([
                    Action::make('test')
                        ->action(function () {
                            //
                        })
                        ->modal()
                        ->modalHeading('Test')
                        ->extraModalFooterActions([
                            \Filament\Actions\Action::make('extraActionTest')
                                ->requiresConfirmation()
                                ->action(function () {
                                    dd('test');
                                }),
                        ])
                    ])

            ]);
    }
Was this page helpful?