Wire Model on Custom Field Class Variable

Maybe a silly question, but when I'm building a custom field, is there any way to use wire:model on a public variable from the custom field class? The input I'm using it on isn't the field I want to bind to the main field value. It's for additional functionality of searching an external API. Right now if I try to use wire:model on a public variable in the custom field class I get an error because it's looking for that variable on the pages.create class.
1 Reply
Dan Harrin
Dan Harrin2y ago
if the public property is on your livewire component, you can wire model to it but field classes arent livewire components use an alpine property
Want results from more Discord servers?
Add your server