-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
When rendered inside a Filament action modal / slide-over (e.g. Filament\Actions\ViewAction), the modal footer disappears and any extraModalFooterActions() buttons render outside/above the modal. This is caused by invalid HTML from nested <form> tags: Commentions renders a <form> in commentions::comments, but Filament action modals often wrap content in their own <form>.
Workaround (confirmed) Override commentions::comments and replace the inner
with a container, using wire:click="save" on the submit button instead. After doing this, Filament modal footers and footer actions render correctly.
Proposed fix Update commentions::comments to avoid always outputting a . Options:
Replace the with a non-form container (
) and trigger save explicitly via wire:click="save".
Or add a config option (e.g. render_form_wrapper) allowing consumers (especially Filament modal contexts) to disable the internal form wrapper.
Why this matters Embedding comments inside Filament record view modals/slide-overs is a common workflow, and the current markup breaks Filament’s modal footer/actions.
Or add a config option (e.g. render_form_wrapper) allowing consumers (especially Filament modal contexts) to disable the internal form wrapper.
Why this matters Embedding comments inside Filament record view modals/slide-overs is a common workflow, and the current markup breaks Filament’s modal footer/actions.
stephenlake
Metadata
Metadata
Assignees
Labels
No labels