F
Filament•2w ago
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 🙏
1 Reply
NeerGreeN
NeerGreeNOP•2w ago

Did you find this page helpful?