mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Update CanBeValidated.php
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user