gabrielf5762
Filament 3 page with custom livewire forms modals
I followed the instructions here: https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component
17 replies
Filament 3 page with custom livewire forms modals
So I see the buttons, I click on one, the modal shows up, the form is displayed with validation, I fill in the form click save, the modal closes but because of the JS error above I cannot click on another button.
17 replies
Filament 3 page with custom livewire forms modals
Now I have a new issue: so I have multiple buttons each opening the same livewire component form and after one modal is closed I get a JS error "livewire.js?id=f121a5df:4351 Uncaught Snapshot missing on Livewire component with id: XXXXXXXXXXXXXXX". The XXXXXXXXXX is the wire:id for each button (which I believe should be different) and this causes all the buttons in the page to stop working.
17 replies
Filament 3 page with custom livewire forms modals
Thank you very much for your support. Unfortunately none worked but I believe I found something useful: In the livewire modal in the create function I create the record in the database and I do 2 things:
17 replies
Filament 3 page with custom livewire forms modals
Just a quick note I am using Livewire 3 and I just realized that in Livewire 3 emit has been replaced by dispatch. Now the last issue is how to close the modal and re-render the parent.
17 replies