DirtyFields state still containing a dirty field even though the field was removed from useFieldArray #10903
Unanswered
lrodriguez-rsi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!, I've been chasing this issue can you help me please?
Having a fieldArray:
Case1: When removing a row dirtyFields is stuck
index: 2
dirty fields
still signaling that theindex 2
contains a dirty field!!Case2: Having 4 rows even if you cleaned the value manually
dirtyFields
keeps stuckdirtyFields
is empty which is expected)row 0
and then removed the value, and as you can seedirtyfields
behaves just greatdirtyFields
is stuck there, always, whether you remove the value or the whole row, there is no way to getdirtyFields
correctlyI followed this thread which seems a similar issue and updated to use the newer version 7.46.1
Does this happen to you? Should we report a bug?
Thank you so much for your help
Beta Was this translation helpful? Give feedback.
All reactions