React Aria Components + React Hook Form #10958
Replies: 2 comments 1 reply
-
You can't use the You can try to override the const { register, setValue } = useForm()
return (
<FileTrigger {...register("file")} onChange={file => setValue('file', file)}>
...
</FileTrigger>
) Otherwise, consider converting the input into a controlled input via the |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for this. Can you please give me an example with Controller ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having some issues with the FileTrigger component of the React Aria Components when I use it with
register
method. I'm unable to debug it as well.Can someone please have a look and help?
Here's the FileTrigger API
Repro - https://codesandbox.io/p/sandbox/determined-flower-cgv6nh?welcome=true
Beta Was this translation helpful? Give feedback.
All reactions