Closed Sergionx closed 19 hours ago
Please provide a minimal reproducible repo.
bro simply go the Multiple Selector component file that you created and then add a ?
sign after every refs for example:
focus()
in the search bar.inputRef.current?.focus();
statements .inputRef?.current?.focus();
@hsuanyi-chou #140
It's merged. Thank you very much!! @MohsinGhani
Describe the bug
Using react-hookf-form, when and the Forms component from Shadcn I get this error if the Multiple Selector has an error and tries to focus it:
TypeError: elm.focus is not a function
Affected component/components
Multiple Selector
How to reproduce
<FormField name={
${subjectName}.prelations`} disabled={isSubjectElective} render={({ field:{...field} }) => (Codesandbox/StackBlitz link
No response
Logs
System Info
No response
Before submitting