extraModalFooterActions not working

What I want to do is customise what happens in the 'Cancel' action of a modal, but I can't find a way to do this. Here is what I've tried so far

TextInput::make('foobar')
    ->required()
    ->suffixAction(\Filament\Forms\Components\Actions\Action::make('something')
        ->requiresConfirmation()
        ->modalCancelAction(fn (StaticAction $action) => $action->label('Close')
            ->action(function() {
                dd('Normal cacnel');
            })
        )
        ->extraModalFooterActions(fn(\Filament\Forms\Components\Actions\Action $action) => [
            StaticAction::make('cancel')
                ->button()
                ->action(function() {
                    dd('Cancel');
                }),
            $action->makeModalAction('cancel2')
                ->action(function () {
                    dd('I said cancel!');
                }),
            \Filament\Actions\Action::make('cancel3')
                ->action(function() {
                    dd('WTF is going on?');
                }),
        ])
        ->action(function () {
            dd('fuck right off');
        }),
    ),

None of the above seems to work. Like, the actions are not even executed. I don't know what I'm missing here. Most of the code is boilerplate or taken directly from the docs.
Was this page helpful?