Skip to content

[BUG] validateOnChange prevents fields from being marked as dirty #117

@jhwheeler

Description

@jhwheeler

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:

  1. Create a field and set validateOnChange to false:
const emailField = field('email', '', [required(), email()], { validateOnChange: false })
  1. Type in the field
  2. dirty never changes from false to true

Expected behavior
The option validateOnChange should not affect the dirty check, only validation itself.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions