You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
When I tried to use the livewire function to make a real-time validation:
public function updated($propertyName)
{
$this->validateOnly($propertyName);
}
The errors doesn't work like I expected because only show one error at time if 2 or more fields has errors they just disappear and form only show the current field error. I think because every time one of my models is updated the model "honeyInputs.honey_javascript" is updated to, and the livewire function only expect one property.
I made it work as expect adding this conditional on the function:
public function updated($propertyName)
{
if ($propertyName !='honeyInputs.honey_javascript'){
$this->validateOnly($propertyName);
}
}
Maybe you could make something in the future to avoid use this conditional
Thanks for your work your package is very helpful.
The text was updated successfully, but these errors were encountered:
Hi.
When I tried to use the livewire function to make a real-time validation:
The errors doesn't work like I expected because only show one error at time if 2 or more fields has errors they just disappear and form only show the current field error. I think because every time one of my models is updated the model "honeyInputs.honey_javascript" is updated to, and the livewire function only expect one property.
I made it work as expect adding this conditional on the function:
Maybe you could make something in the future to avoid use this conditional
Thanks for your work your package is very helpful.
The text was updated successfully, but these errors were encountered: