insin / isomorphic-lab

Isomorphic React experimentation

Home Page:https://isomorphic-lab.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

form reverts to browser default validation upon submit

jmjpro opened this issue · comments

I forced a validation error by adding a price greater than 100. I saw the custom validation error. Cool. Then I submitted the form with the price still greater than 100. I also got a validation error. Cool. What's not cool is that the validation error from the submission was a browser default validation error instead of a custom error.
isomorphic-form-error

Looks like we should enhance the client version adding novalidate on the <form> when the component mounts.

Fixed in 1bdf9a2 and deployed