Nov 11, 2024
0
Level 23
livewire 3 - form sent to backend while being filled?
not sure what I am doing wrong, i have a standard form
<form wire:submit="create">
@csrf
<textarea value="" wire:model="form.key_features" placeholder="features, one per line"></textarea><br/><br/>
<textarea value="" wire:model="form.description" placeholder="description"></textarea><br/><br/>
and when i am filling in the form, it seems doing the create() function which hits the db to save the form? and because the form isnt filled fully yet, i keep getting DB mysql error saying x field is required.. i am not sure why? it happens when i try to fill a form field, without even going to next field (ie blur event)
Please or to participate in this conversation.