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

isDirty is not updated when a field is touched #12

Open
igorfv opened this issue Aug 4, 2022 · 0 comments
Open

isDirty is not updated when a field is touched #12

igorfv opened this issue Aug 4, 2022 · 0 comments

Comments

@igorfv
Copy link
Contributor

igorfv commented Aug 4, 2022

<button type="submit" disabled={!isDirty()}>Save</button>

In this case, the button will always be disabled because isDirty only updates when I submit but I can't submit until the isDisty is true.

I'm using the array component and I need the updated isDirty if an item changes, items are added, or an item is removed, ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant