Closed sglkc closed 8 months ago
filament/filament
v3.0-stable
v10.10
No response
PHP 8.2.15
The method onValidationError is called twice from custom pages that use InteractsWithForms. My temporary fix is to not use it.
onValidationError
InteractsWithForms
It should be called only once.
use InteractsWithForms
validate
https://github.com/sglkc/filament-issue
You do not need HasForms or InteractsWithForms when using a Filament page, we have those on the base Page class, and adding them again can cause issues like this
HasForms
Package
filament/filament
Package Version
v3.0-stable
Laravel Version
v10.10
Livewire Version
No response
PHP Version
PHP 8.2.15
Problem description
The method
onValidationError
is called twice from custom pages that useInteractsWithForms
. My temporary fix is to not use it.Expected behavior
It should be called only once.
Steps to reproduce
use InteractsWithForms
validate
onValidationError
will be called twiceReproduction repository
https://github.com/sglkc/filament-issue
Relevant log output
No response