Skip to content
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

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

Open
jhwheeler opened this issue May 13, 2024 · 0 comments
Open

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

jhwheeler opened this issue May 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jhwheeler
Copy link

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.

@jhwheeler jhwheeler added the bug Something isn't working label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants