unable to call method
I am new to filament, and got assigned to a project to make a custom field for searching location through google maps api.
I am getting a little stick here. I'm using to try and call a method in my component class (GeoMap), but keep getting this error
Unable to call component method. Public method [newLocations] not found on component
. When I post this method in my CreateLocation class it does work however. What is the reason for this, and how can I fix this?
2 Replies
It seems like $wire is just not getting to the right file?
Form fields are not Livewire components. That's why $wire points to the page (because the page is a Livewire component, not the field).
You'll need to dispatch an event to your field. See how its done:
https://github.com/search?q=repo%3Asaade%2Ffilament-adjacency-list%20builder%3A%3Asort&type=code