F
Filament9mo ago
MAF

Calling $wire.$id inside custom form element returns the whole form ID and not only the element.

I am trying to use $wire.$call('myFunction') from inside a custom form component, but I get Unable to call component method. Public method [myFunction] not found on component However, it exists in the custom form component. But for some reason $this.$wire calls the parent form object.
3 Replies
Dennis Koch
Dennis Koch9mo ago
Form components aren’t Livewire components They are plain view components.
MAF
MAFOP9mo ago
Thank you @Dennis Koch and sorry for the misunderstanding
Dennis Koch
Dennis Koch9mo ago
No need to be sorry 😅

Did you find this page helpful?