Skip to content

Phone number not changing after country code is changed from custom input

https://codesandbox.io/s/react-phone-input-forked-s80zh

When using the input without country selection and creating a custom one, after the country is changed, the value is not changed until you do some changes in the number input.

Steps:

  1. US is selected as the default country
  2. Type some digits in the input
  3. Click PL

Outcome: the Value is still the same

  1. Type another digit

Outcome: the value updates with the prefix as well

Edited by Alicja