-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
field.set(obj) doesn't update form.touched and form.changed #337
Comments
Right now the I need to think more about how to handle this, as the About dealing with complex fields structure, did you take a look to the demo repo? |
Same issue for me. |
It feels rather intuitive that you need to call |
🎉 This issue has been resolved in version 5.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
From version 5.8 field set() will trigger onChange hook on ‘changed’ field prop increment. ‘touched’ prop is changed only if the user interact with inputs |
I have a field with an empty object as initial value. I'm using
field.set
to dynamically add some new keys. It works good, but form properties (touched, changed) don't reflect these changes.Also, could you provide some examples how to deal with Array and Object values? Current docs don't clarify this enough.
The text was updated successfully, but these errors were encountered: