We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I believe this is a bug, but it is possible that I am not understanding something.
When using a FieldArray, push, and remove you can end up with a dirty form, when I don't think it should be dirty.
FieldArray
push
remove
I forked the Simple Demo: https://codesandbox.io/s/32p402x3om
Add Customer
X
The form stays dirty, but I would expect it to be back to pristine.
https://codesandbox.io/s/32p402x3om
React Final form. Mac OSX Chrome.
Thank you for a great library. Let me know if I can provide more information.
The text was updated successfully, but these errors were encountered:
Howdy!
Thank you for reporting an issue! 👍
Could you please double check if the demo you provided works as you'd expect? I can't see add customer button anywhere 😞
add customer
Thanks!
Sorry, something went wrong.
This bug still persist with versions:
"final-form": "4.18.2", "final-form-arrays": "3.0.1", "react-final-form": "6.3.0", "react-final-form-arrays": "3.1.0",
on form.mutators.remove('emails', 0); second element becomes first one and becomes dirty, which is wrong
form.mutators.remove('emails', 0);
No branches or pull requests
Are you submitting a bug report or a feature request?
I believe this is a bug, but it is possible that I am not understanding something.
What is the current behavior?
When using a
FieldArray
,push
, andremove
you can end up with a dirty form, when I don't think it should be dirty.I forked the Simple Demo: https://codesandbox.io/s/32p402x3om
Add Customer
X
to remove the just added field.The form stays dirty, but I would expect it to be back to pristine.
What is the expected behavior?
Sandbox Link
https://codesandbox.io/s/32p402x3om
What's your environment?
React Final form. Mac OSX Chrome.
Other information
Thank you for a great library. Let me know if I can provide more information.
The text was updated successfully, but these errors were encountered: