question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove browser build-in validation feature

See original GitHub issue

Hi 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.

Screen Shot 2019-11-17 at 4 02 45 pm (Browser build-in validation)

cheers bill

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
bluebill1049commented, Nov 17, 2019

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 😃

1reaction
lu-zencommented, Nov 17, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found