Closed snndmnsz closed 4 weeks ago
Have you tried to use the solution in #83 ?
@jsun969 Yes, I did, but it didn't work. I found the solution, tho. React Hook Form tries to focus on the error state. Since upload components have no focusable elements, it throws an "elm.focus is not a function" error. If you set shouldFocusError: false
in your useForm, it fixes the problem, but you can't use the focus-on-error functionality anymore. Could you please add this problem to the .md file of this package so that everyone who wants to use uploads in their form can resolve this issue?
Yea we should add it in readme. Do you want to make a PR for it?
Yeah, sure.
I get this error when i put Upload component inside FormItem. Probably cannot find the focus bcs of Upload uses button. How can i resolve this?
Error source: