requiresConfirmation not working on actions

I have a Filament page where I have a list of actions (array)

public function logActivityModalActions(): array
{
    $actions = [
        Action::make('delete')
            ->label('Delete')
            ->color('danger')
            ->requiresConfirmation()
            ->action('deleteAction'),
    ];
}


And I am rendering this array like the following:

<x-filament-panels::form.actions
    :actions="$this->actions"
/>


All is working well, but the requiresConfirmation() is not working the action is called without showing the confirmation dialog.

any idea?
Was this page helpful?