wsmd/react-use-form-state

Validate all inputs without touch

Closed this issue · 2 comments

So imagine a scenario where a user clicks on the submit button without touching any of the fields, and since formState.validity object is empty, I am not able to verify the fields and also can't show the correct error message for each of them.

I think all of the fields should run the validation method on each render. There also could be a function to validate all the fields so we can use it in submissions.

These might help you: #57 #47 #56

Nope didn't help that much. But I'm going to close this issue because it's duplicated.