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

Prefix is omitted from the returned value from onChange handler

Open ogheneovo12 opened this issue 5 years ago • 2 comments
trafficstars

i was expecting to get the prefix in the value being returned from the onChange handler, but it's omitted eg for input value of "+234 701 423 9218" I get "2347014239218" returned from the onChange value

ogheneovo12 avatar Nov 18 '20 03:11 ogheneovo12

No prefix even for valid country code.

ed1nh0 avatar May 20 '21 14:05 ed1nh0

use inputProps to get the formatted value (with prefix)

saartamir avatar Oct 18 '21 11:10 saartamir