UseFieldArray clearing the value of new added field if making changes to any previous Field values #10758
Unanswered
ayushdevelop
asked this question in
General
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.
-
Hello Everyone
I have a component currently where I am using
append
to add a new input field with these two propertiesThis is the code
If you see here I have a
Switch
element this is used to change theisActive
property of a particular field valuethe logic to handle this switch works like this
So what I am facing an issue with when I add a new input field using
append
and type my text to that input, after that if I useSwitch
to change the value of theisActive
property of any previousfield
element or the newly appendedfield
element it removes the text added to the newly added input field.What can be causing this issue as I have looked I don't see any issues in my code or is there something I am missing?
Beta Was this translation helpful? Give feedback.
All reactions