react-intl-tel-input
react-intl-tel-input copied to clipboard
added onPhoneNumberFocus handler
I need to make some actions in my app on every input focus, so could you pls add the "onFocus" handler? Thanks!
Have you tried passing onFocus
with inputProps
?
sure, that was the first thing I tried
Hi guys, do you need any help with this PR? It would be great to have onFocus
handler!
yes, I need @tomegz to check why the tests are failed and approve this PR
+1
You should first resolve the conflicts and make your branch up to date. Maybe the tests will stop failing then. Also, looking through the code it seems really weird that it doesn't work for you if you pass it like this:
const inputProps = {
onFocus: yourOnFocusHandler,
};
<IntlTelInput inputProps={inputProps} />