Custom field with google map re-render problem
I have a custom form field with Google map inside it. The problem is when some other form fields, like select input with live modifier is changed form gets re rendered as expected, but google map disappears.
How to prevent re-rendering of google maps element. I tried to add wire:ignore on the parent but that does not help
3 Replies
Can you share the relevant code?
I haven't tried this with a map, but I've had a similar issue before. I don't think Filament registers the
wire:ignore
If you're using a custom Livewire component, implement HasForms
and then put the map outside of the formThanks man for the idea. Actually wire:ignore works if inserted outside of
<x-dynamic-component>
so I wrapped it with a div with wire:ignore and it worksGood to know! Thanks for sharing