Skip to content

"Missing name" @ MUI TextField with useFieldArray #1693

Answered by bluebill1049
dandv asked this question in General
Discussion options

You must be logged in to vote

I would use Controller instead for the external controlled component: https://react-hook-form.com/api#Controller

<TextField
  ref={register({ name })}
  x-id="TextField"  // to show in the "Missing name @" warning
  variant="outlined"
  {...others}
/>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dandv
Comment options

Answer selected by dandv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants