You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
The npx @hookform/codemod v7/update-register does not update material UI textfield with <TextField disabled fullWidth margin="normal" name="name" size="small" type="text" variant="outlined" error={!!errors.name} inputRef={register({ required: true })} />
Only works for
`-
Describe the bug
A clear and concise description of what the bug is.
The
npx @hookform/codemod v7/update-register
does not update material UI textfield with<TextField disabled fullWidth margin="normal" name="name" size="small" type="text" variant="outlined" error={!!errors.name} inputRef={register({ required: true })} />
Only works for
`-
To Reproduce
Steps to reproduce the behavior
Expected behavior
A clear and concise description of what you expected to happen.
when I run
npx @hookform/codemod v7/update-register
it should update matatrial UI textfield input from
<TextField disabled fullWidth margin="normal" name="name" size="small" type="text" variant="outlined" error={!!errors.name} inputRef={register({ required: true })} />
To
<TextField disabled fullWidth margin="normal" size="small" type="text" variant="outlined" error={!!errors.name} {...register("name",{ required: true })} />
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: