Modal Action description & label not set

I am trying to set a action modal icon, description and submit action label, but only the heading seems to get applied.

Action::make('complete')
    ->label('Mark as Completed')
    ->form([
        TextInput::make('installed_by')
            ->label('Installed By')
            ->required(),
    ])
    ->color('success')
    ->icon('heroicon-m-check-circle')
    ->modalHeading('Mark Order as Completed')
    ->modalDescription('Please provide information and photograph.')
    ->modalSubmitActionLabel('Complete Order')
    ->modalIcon('heroicon-m-check-circle')
    ->requiresConfirmation()
    ->action(function (): void {}),
image.png
Solution
Seems I have to move these after requiresConfirmation() as this sets defaults.
Was this page helpful?