Update CanBeValidated.php

This commit is contained in:
Dan Harrin
2025-04-19 09:28:24 +01:00
parent 0bee7fd8cb
commit f68639dd1d
@@ -119,6 +119,11 @@ trait CanBeValidated
}
$livewire = $this->getLivewire();
// By storing the currently validating form in the Livewire component, we can optimize the validation process
// so that the `prepareForValidation()` method is only called for the current form instead of all forms.
// This can also prevent infinite loops involving schemas that self-validate, such as the table query
// builder which crashes when it is being used while an action is submitted.
$livewire->currentlyValidatingForm($this);
try {