Stumbled upon a code example here
Decided to fork a sandbox version (original had bugs and errors)
I am trying to implement custom validation callbacks for each form input element by providing options in the register
function, but the validate
is only triggered upon submission even though I've set reValidateMode
to "onChange" in the useForm
configuration.
The question now is how can I trigger the validate
function on the onChange
event in the scenario described in the sandbox?