Deferred loading with form in laravel component
I have a slideover in a livewire component where I'm using deferred loading, so that the model isn't set until the user clicks on an element to open it. So I've got this:
Where
$this->getData()
gets the data and then calls $this->form->fill($this-model->toArray())
. That all works fine, however, I also want to use live fields on the form so that when the user changes one field, the model is updated without them having to click submit, so I'm using the live()
method on the form fields. But when you change a field, the form immediately re-renders because of $this->form->fill()
presumably.
I'm sure I'm just not thinking about something correctly, because I feel like this should be pretty straight forward. Here's my form:
What am I doing wrong here?0 Replies