Set focus inside custom component with useController #9362
Unanswered
dariolongo
asked this question in
Q&A
Replies: 2 comments 5 replies
-
have you considered using the |
Beta Was this translation helpful? Give feedback.
3 replies
-
You can use Working demo: https://codesandbox.io/s/usecontroller-forked-r2spth?file=/src/App.tsx |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to set the focus on custom Text component with useController.
my-page.js
Text.js
There is the setFocus from the useForm hook, but in this way I have to pass the function as a pros to each custom field component.
How can this be done correctly?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions