使用带有 react-hook-form 的 useFieldArray append 时出错(无法读取 null 的属性(读取 'focus'))
Error when using useFieldArray append with react-hook-form (Cannot read properties of null (reading 'focus'))
当我尝试从 useFieldArray
勾.
Codesandbox link.
点击“附加”按钮您将看到错误页面。请帮助我调查此问题或建议此代码的最佳实践。
PS。尝试将 line: 18
上的名称更改为 name: "test2"
,然后再次单击“附加”,没有错误。
当我尝试从 useFieldArray
勾.
Codesandbox link.
点击“附加”按钮您将看到错误页面。请帮助我调查此问题或建议此代码的最佳实践。
PS。尝试将 line: 18
上的名称更改为 name: "test2"
,然后再次单击“附加”,没有错误。