A phone number input made with Vue JS (format & valid phone number)
Ex: Init the component withv-model
= +33612345678
---> the component's country selector is set & the update event return
{
countryCode: "FR",
isValid: true,
phoneNumber: "612345678",
countryCallingCode: "33",
formattedNumber: "+33612345678",
nationalNumber: "612345678",
formatInternational: "+33 6 12 34 56 78",
formatNational: "06 12 34 56 78",
uri: "tel:+33612345678",
e164: "+33612345678"
}
Works when you entering the number and if the country code is null
libphonenumber-js
dependency to 1.7.51Thanks @hitesh399
error-color="red"
#59#61 Release 1.0.8
Merci @antoine92190