Skip to content

issue: shouldUseNativeValidation without progressive doesn't work as expected #1129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
marcomuser opened this issue Dec 8, 2024 · 1 comment
Open
1 task done

Comments

@marcomuser
Copy link

Version Number

7.54.0

Codesandbox/Expo snack

https://codesandbox.io/p/sandbox/beautiful-stallman-738wjw

Steps to reproduce

  1. Go to https://codesandbox.io/p/sandbox/beautiful-stallman-738wjw
  2. Click on submit button
  3. Even though all fields are required, no browser validation is displayed
  4. Enable progressive: true in the useForm hook
  5. Resubmit the form
  6. See browser validation error!

Expected behaviour

This might not be a bug but a lack of documentation. I just followed the docs for the shouldUseNativeValidation property. The progressive property is not documented at all in the useForm docs. I found it in the release notes after digging a little bit into the source code. After enabling both properties it works exactly as expected!

What's the purpose of shouldUseNativeValidation without enabling progressive as well? Should they always be used together? Can we document and maybe even enforce that in the useForm config object via ts?

P.S. This is a fantastic feature! Absolutely love that react-hook-form enables this. ✨

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@bluebill1049
Copy link
Member

Going to update progressive in the doc

@bluebill1049 bluebill1049 transferred this issue from react-hook-form/react-hook-form Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants