You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
It's possible to integrate the intl-tel-input React Component (https://intl-tel-input.com/examples/react-component.html) with React Hook Form Controller (https://react-hook-form.com/docs/usecontroller/controller) so when there is an error on the form it focus on the telephone form field using TypeScript?
I have tried passing the React Hook Form Controller ref to the IntlTelInput component but it fails with a "TypeError: elm.focus is not a function".
I also tried passing the ref on the inputProps attributes like this:
And the focus works ok, but breaks the IntlTelInput UI (disapear flags and all the UI elements).
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions