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

Setting missing fields always dirties the form #140

Open
vincaslt opened this issue Dec 12, 2024 · 0 comments
Open

Setting missing fields always dirties the form #140

vincaslt opened this issue Dec 12, 2024 · 0 comments

Comments

@vincaslt
Copy link

I did not provide a particular field in defaultValues but I registered that field in the form. The form is always dirty (form.formState.isDirty=true), even though there are no dirty fields (form.formState.dirtyFields={}). This happens regardless of shouldUnregister being true of false. Curiously, I can't reset the form then, and that fields value is always set to undefined.

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