Remove browser build-in validation feature
See original GitHub issueHi guys,
I just want to get your thoughts on remove nativeValidation
option at useForm
.
https://react-hook-form.com/api#NativeValidation
after 9 months of maintaining this lib, there is no single question regard browser build-in validation, I have a feeling that most of us are using this lib for custom form validation (which is what I used at work as well).
I still want to keep this lib as light and small as possible even though at this stage our bundle size is 5.6Kb which is small but eliminated browser build-in validation, we can reduce the package size even more and leave us with the room with other features.
If not many of you are against doing so, I would probably drop this option off on the next release.

cheers bill
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (8 by maintainers)
Top Results From Across the Web
Disable validation of HTML5 form elements - Stack Overflow
If you want to disable client side validation for a form in HTML5 add a novalidate attribute to the form element. Ex:
Read more >Client-side form validation - Learn web development | MDN
Validation done in the browser is called client-side validation, ... Built-in form validation uses HTML form validation features, ...
Read more >Remove browser input validation - Auth0 Community
Feature : Provide a short title of your feature request/feedback. Remove browser input validation and default back to Auth0 input validation.
Read more >No way to prevent default browser input validation · Issue #89
Currently there doesn't seem to be any direct way to prevent the browser's default validation behaviour. eg. when the form contains an input ......
Read more >Disable HTML5 Form Validation in React using formsy-react
Disabling the built-in HTML5 Validation is straightforward to avoid default behavior on inputs allowing formsy-react to handle and manage ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
thanks, @sirluis for your feedback, I think I may confused you with
native validation
, it’s the browser build-in validation (I will update with a screenshot), which hardly has people using it with this lib. Yes, generic schema validation is going to come, I have a plan for it already 😃I think it’s good to have native validation as an alternative to yup (which is pretty huge and no tree-shakeable) until the generic validation feature comes out.