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
bwurtz999
bwurtz9996d ago
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 form
root55
root555d ago
Thanks 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 works
bwurtz999
bwurtz9995d ago
Good to know! Thanks for sharing
Want results from more Discord servers?
Add your server