Describe the bug
When you pass validateOnChange: true to a field's options, the field is not marked dirty when you change its value.
To Reproduce
Steps to reproduce the behavior:
- Create a field and set
validateOnChange to false:
const emailField = field('email', '', [required(), email()], { validateOnChange: false })
- Type in the field
dirty never changes from false to true
Expected behavior
The option validateOnChange should not affect the dirty check, only validation itself.
Describe the bug
When you pass
validateOnChange: trueto a field's options, the field is not marked dirty when you change its value.To Reproduce
Steps to reproduce the behavior:
validateOnChangetofalse:dirtynever changes fromfalsetotrueExpected behavior
The option
validateOnChangeshould not affect thedirtycheck, only validation itself.