© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3mo ago•
1 reply
NeerGreeN

AttachAction and EditAction share modal form / wrong form appears after cancel

Hi everyone 👋
I'm having a strange issue with a ManageRelatedRecords page (Filament v3, latest).
The relationship is Assignment -> properties (many-to-many with pivot table assignment_properties).

When I:

Click “Add Property” (AttachAction) — the modal opens correctly.

Cancel or close it without saving.

Then click “Edit” on an existing record —
👉 the AttachAction form opens again instead of the Edit form.

Also, sometimes after Detach or Edit, the table doesn't refresh properly unless I reload the page.

I've tried:

Setting ->after(fn () => $this->resetTable()) on each action

Giving EditAction its own ->form([...])

Emptying the main page form() schema

Even defining a pivotFields() method and using it in both Attach & Edit

…but the Attach modal schema keeps “leaking” into the Edit modal after cancel or close.
Looks like modal state is being reused between actions inside ManageRelatedRecords.

Has anyone found a stable way to completely isolate the modal forms for Attach and Edit actions,
or to force a clean refresh of the table and modal state after cancel?

Thanks a lot 🙏
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

extraModalFooterActions in EditAction modal
FilamentFFilament / ❓┊help
2y ago
editAction -> form -> columns(2)
FilamentFFilament / ❓┊help
15mo ago
Form Actions (Create and Cancel)
FilamentFFilament / ❓┊help
2y ago
Refresh field after modal form
FilamentFFilament / ❓┊help
3y ago