react-phone-input-2
react-phone-input-2 copied to clipboard
Prefix is omitted from the returned value from onChange handler
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
No prefix even for valid country code.
use inputProps to get the formatted value (with prefix)