react-phone-input-2 icon indicating copy to clipboard operation
react-phone-input-2 copied to clipboard

Afghanistan (+93) mask not able to input full number

Open asibilia opened this issue 4 years ago • 4 comments

For Afghanistan (+93) the data.format argument in onChange shows "+.. ... ... ... ... .." but the input stops allowing new characters at "+.. ... ... ... ... ." (one character short).

For example, I'm not able to enter any characters past +(93) 123 123 123 333 3

asibilia avatar Mar 15 '21 21:03 asibilia

same problem albania, algeria so on..

mmustafau avatar Apr 02 '21 09:04 mmustafau

i see the problem i guess. component does not control all country phone. it uses default format for these type countries.

mmustafau avatar Apr 06 '21 12:04 mmustafau

As a temporary fix, you can set enableLongNumbers=true

bl00mber avatar Apr 09 '21 03:04 bl00mber

@bl00mber Hi, haven't solved this problem? or are you planning to decide in the near future?

Gradesor avatar Dec 06 '22 14:12 Gradesor