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

fix: unwrap initial value with useField.resetField fixes #3272 #3274

Merged
merged 2 commits into from Apr 21, 2021
Merged

Conversation

logaretm
Copy link
Owner

@logaretm logaretm commented Apr 21, 2021

Corrects the initial value state management which would be a wrapped ref sometimes causing the dirty flag to have a wrong value after reset

closes #3272

@logaretm logaretm merged commit f6e9574 into main Apr 21, 2021
@logaretm logaretm changed the title fix: correctly reset the initial value with useField.resetField fixes #3272 fix: unwrap initial value with useField.resetField fixes #3272 Apr 21, 2021
@logaretm logaretm deleted the fix-3272 branch April 21, 2021 19:23
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

Successfully merging this pull request may close these issues.

[v4] resetField does not update dirty flag when setting value
1 participant