Replies: 1 comment 2 replies
-
There is not a such uage by assing key at individual input: <input
{...register(`trackDays.${index}.dateIsKnown`)}
type="radio"
value={true}
key={field.id}
/> for radio or checkbox it's also possible to build a controlled component and wrap it with |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
Version Number
7.34.0
Codesandbox/Expo snack
https://codesandbox.io/s/react-hook-form-usefieldarray-forked-vq7ctg
Steps to reproduce
Expected behaviour
The expected behaviour would be that the first element
dateIsKnown
should be set to yes/true and whenappend
is called then thedateIsKnown
should befalse
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions