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

Autoformat only format mobile phone

Open david-vde opened this issue 3 years ago • 0 comments

If I enter a non mobile phone number. For exemple a belgian phone :

3225201234

It format it like a mobile "32 252 01 23 4" and this is wrong. It should be "32 2 520 12 34"

When disabling autoformat, I'm unable to insert spaces manually, so I have no solution to resolve this issue except, disable the autoformat and works with fill digits without any spaces. Witch is pretty ugly : "3225201234"

david-vde avatar Oct 20 '21 11:10 david-vde