-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
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.21.1
Current Behavior
onSubmit: validate all fields
onChange: dependent fields aren't validated (as a result these fields loose error state)
Expected Behavior
onChange doesn't make dependent fields with errors loose thier error state if they haven't been changed
Steps To Reproduce
- Open example: https://playcode.io/2018348
- Choose yes in "showSecondBlock" field
- Click on submit button (secondBlock's fileds got errors)
- Go to "name" field of firstBlock object
- Type some text (secondBlock's fields loose thier errors)
Environment
No response
Anything else?
No response