Skip to content

CommentsEntry breaks Filament modal / slide-over footer  #77

@emjay64

Description

@emjay64

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions