how to disable footer actions on a Modal?

I tried to disable the actions but when I click refresh while the modal is open it displayed like shown on the image


this is the Action code to trigger the Modal

Tables\Actions\Action::make('View pdf')
                    ->disabledForm()
                    ->modalContent(fn ($record) => view('app.custom-modal', ['record' => $record]))
                    ->modalSubmitAction(fn ($action) => $action->disabled(fn (): bool => true)->hidden())
                    ->modalCancelAction(fn ($action) => $action->disabled(fn (): bool => true)->hidden()),



and yes i enabled the ->unsavedChangesAlerts() in the provider.
image.png
Was this page helpful?