Can't seem to globally change the AttachAction modal width?

I have a service provider where I'm configuring defaults for many components. One component I'm trying to configure is the Filament\Tables\Actions\AttachAction modalWidth. I'm doing the following:
Tables\Actions\AttachAction::configureUsing(function (Tables\Actions\AttachAction $component): void {
$component->modalWidth(MaxWidth::Medium);
});
Tables\Actions\AttachAction::configureUsing(function (Tables\Actions\AttachAction $component): void {
$component->modalWidth(MaxWidth::Medium);
});
This does not seem to be working though. Any ideas why? It seems both the AttachAction and the AssociateAction are setting the modal width in their setUp method and I thought I could override this in the configureUsing should I not be able to?
Solution:
Hmm, after looking at the configureUsing method, it appears there is an isImportant parameter that I can set to true which solves my issue.
Jump to solution
1 Reply
Solution
morty
morty5d ago
Hmm, after looking at the configureUsing method, it appears there is an isImportant parameter that I can set to true which solves my issue.

Did you find this page helpful?