Replies: 1 comment
-
I solved this. It was definitely me just misunderstanding the API and mixing up some stuff. Specifically the name for the controller was wrong and destructuring the field in render. |
Beta Was this translation helpful? Give feedback.
0 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.
-
I'm trying to use a MUI TextField with a Controller and useFieldArray. I have to use
setValue
ononChange
to get it to work, and that comes with a trade of. If you edit this field you don't have to save and useupdate
, which may cause some UX issues.The easiest solution would probably be to just use
setValue
for each individual value in the fieldarray, but I'm curious if I have misunderstood something or if there is a cleaner solution to this problem.Here is a codesandbox I created to replicate the issue, if anyone wants to have a quick look. Please excuse the crude UI. 😅
Beta Was this translation helpful? Give feedback.
All reactions