F
Filament7mo 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 Koch7mo ago
Form components aren’t Livewire components They are plain view components.
MAF
MAFOP7mo ago
Thank you @Dennis Koch and sorry for the misunderstanding
Dennis Koch
Dennis Koch7mo ago
No need to be sorry 😅
Want results from more Discord servers?
Add your server