You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
I am running into a weird issue where i have a complex form that also has a fieldarray configured in it. For some reason whenever I append a new entry to the fieldArray it turns some of my fields as dirty true even though they werent touched. Here's an example:
Why is "textBox" dirty if it wasn't even touched? regardless of it having a default value or not, if the field isn't even touched and its value wasnt changed, shouldnt it remain not dirty?
in a much bigger implementation I have, there are no default values at all, and yet some fields decide to turn dirty true and others don't.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I am running into a weird issue where i have a complex form that also has a fieldarray configured in it. For some reason whenever I append a new entry to the fieldArray it turns some of my fields as dirty true even though they werent touched. Here's an example:
https://codesandbox.io/p/sandbox/usefieldarraydirty-issue-lm8hcr
Why is "textBox" dirty if it wasn't even touched? regardless of it having a default value or not, if the field isn't even touched and its value wasnt changed, shouldnt it remain not dirty?
in a much bigger implementation I have, there are no default values at all, and yet some fields decide to turn dirty true and others don't.
Beta Was this translation helpful? Give feedback.
All reactions