Replies: 2 comments 5 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
-
here i have another example that problem is only when there is a nested object like:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I have a problem with
remove()
function in nested objects. Somehow it delete object keys that are not set as defaultValue.My codesandbox:
https://codesandbox.io/s/react-hook-form-usefieldarray-qk7be?file=/src/index.js
behavior:
item.base.title
is removedWhat i expected:
When use
remove(index)
it remove whole array object at specific index and don't change any other objects.item.base.title
supposed to stay and it supposed to not be an inputis there any workaround for it?
Beta Was this translation helpful? Give feedback.
All reactions