Action Modal - inside user menu

I'm trying to add an Action with modal form inside e user menu. The button appear, but the modal doesn't open
Filament::registerRenderHook(
PanelsRenderHook::USER_MENU_PROFILE_AFTER,
fn (): string => Blade::render(
Action::make('updateAuthCredentials')
->modal(true)
->color('gray')
->icon('heroicon-o-user')
->form([

])->toHtml()
)
);
Filament::registerRenderHook(
PanelsRenderHook::USER_MENU_PROFILE_AFTER,
fn (): string => Blade::render(
Action::make('updateAuthCredentials')
->modal(true)
->color('gray')
->icon('heroicon-o-user')
->form([

])->toHtml()
)
);
Anyone with some experience?
5 Replies
galli.roberto
galli.robertoOP2d ago
Did you try it?
Shaung Bhone
Shaung Bhone2d ago
Not yet I think you can't render action in the blade render. Try another approach or sth.
galli.roberto
galli.robertoOP2d ago
What is different from mine? Button modal doesn't work. Button link yes. I have tried many approaches. The unique that work is modal core concept https://filamentphp.com/docs/3.x/support/blade-components/modal
Want results from more Discord servers?
Add your server