-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
core
Version
5.x
Current Behavior
After upgrading from version 5.0.0 to 5.1.0, the form validation stopped functioning as expected, despite using the same schema. Activating the disableHTML5Validation option causes the native validation to not trigger immediately. Is now required to interact with the field before the native validation starts working, which wasn't the case in the previous version.
Expected Behavior
When using the same schema with disableHTML5Validation activated, validation should occur automatically. The form should prevent submission if any required fields are missing, even if the user hasn't interacted with them. This behavior should be consistent with how it worked in version 1.8.1, ensuring a seamless and consistent form validation experience.
Steps To Reproduce
Version 5.0.0
https://codesandbox.io/p/sandbox/j49msr
Version 5.1.0
https://codesandbox.io/p/sandbox/rjsf-5-1-0-2rhpsf
Environment
- OS:Ubuntu-20.04 (WSL2)
- Node: 18.15.0
- yarn: 1.22.19
Anything else?
No response