react-intl-tel-input icon indicating copy to clipboard operation
react-intl-tel-input copied to clipboard

added onPhoneNumberFocus handler

Open ucozlab opened this issue 5 years ago • 6 comments

I need to make some actions in my app on every input focus, so could you pls add the "onFocus" handler? Thanks!

ucozlab avatar Oct 28 '18 14:10 ucozlab

Have you tried passing onFocus with inputProps?

tomegz avatar Dec 16 '18 20:12 tomegz

sure, that was the first thing I tried

ucozlab avatar Dec 17 '18 07:12 ucozlab

Hi guys, do you need any help with this PR? It would be great to have onFocus handler!

nazarlitvin avatar May 01 '19 08:05 nazarlitvin

yes, I need @tomegz to check why the tests are failed and approve this PR

ucozlab avatar May 07 '19 06:05 ucozlab

+1

Tomlgls avatar May 15 '19 08:05 Tomlgls

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} />

tomegz avatar May 15 '19 20:05 tomegz