Can't get extraModalFooterActions to work
Hi. I can't seem to get
->extraModalFooterActions
working. When I use Filament\Forms\Components\Actions\Action
I get an Typed property Filament\Forms\Components\Actions\Action::$component must not be accessed before initialization
exception:
And when I use Filament\Actions\Action
the button appears but doesn't open a modal or execute the code in ->action()
:
11 Replies
Am I missing something obvious?
Is this in a custom page?
It's the profile page
Custom EditProfile
Is it the simple profile page?
I’m not seeing anything obviously wrong with the code.
I haven't checked out those the new profile options. Is simple the one without the sidebar? That's what mine is.
Yes, that’s the simple one.
Try ->profile(isSimple: false)
Just wondering if the simple one doesn’t have the modals component.
Same problem unfortunately. Primary actions / modals work fine. I just can't get secondary ones (inside
extraModalFooterActions
) working.
Is Filament\Forms\Components\Actions\Action the right class to be using here?Honestly I’m not sure. I would think it would be the regular action since it’s not actually inside the modal’s form.
Just tried it in a resource, same issue. I wonder if there's a bug when trying to do this inside anonymous actions. I'll see if I can reproduce it in a clean project
It’s possible.
GitHub
extraModalFooterActions
not working properly inside anonymous act...Package filament/filament Package Version 3.2.47 Laravel Version 10.3.3 Livewire Version 3.4.8 PHP Version 8.3 Problem description Actions inside the ->extraModalFooterActions() method of anonym...