Description
Is your feature request related to a problem? Please describe.
I'm trying to add custom client-side errors as documented here. My issue is that the error store removes my error when validation happens on any other field. Using an onValidated
event, I could re-add my error every time the form is validated until it is fixed.
It would also be useful for multi-step forms to disable the "Next" button until the first validation is triggered, ie. const locked = $derived(!validated || !!$allErrors.length > 0)
where validated
is set to true when the onValidated
event is triggered.
Describe the solution you'd like
I would like an event to be fired after a form has been validated.
Describe alternatives you've considered
For the second use case I've tried using onChange
but that doesn't always work when a change doesn't trigger validation.