SPA Issue with User Menu Items

I've created User Menu Item with Action
Action::make(name: 'editProfile')
->slideOver()
->label(__(key: 'actions.edit_profile'))
->modalHeading(heading: fn () => __(key: 'actions.edit_profile_for', replace: ['name' => Auth::user()->full_name]))
->icon(icon: Heroicon::Identification)
->fillForm(data: fn() => Auth::user()->toArray())
->schema(UserResource::getFormSchema(includeRoles: false))
Action::make(name: 'editProfile')
->slideOver()
->label(__(key: 'actions.edit_profile'))
->modalHeading(heading: fn () => __(key: 'actions.edit_profile_for', replace: ['name' => Auth::user()->full_name]))
->icon(icon: Heroicon::Identification)
->fillForm(data: fn() => Auth::user()->toArray())
->schema(UserResource::getFormSchema(includeRoles: false))
And it works on inital page load, but when I go to other pages with SPA turned on, component for action is not found, and it wont trigger slideOver modal. Wondering if that is bug in filament that it deletes html for modal when SPA rerenderes page?
1 Reply
SuperUserDo
SuperUserDoOP4w ago
No description

Did you find this page helpful?