Enable prefixes in phone numbers.
The prefix behavior is perfect for country code.
Released in v1.0.7
Cheers
I think this is not fixed. I'm still having trouble with phoneRegionCode and Prefix
var phoneFormat = new Cleave('.validate-form-input-phone', {
phone: true,
phoneRegionCode: 'IT',
prefix: '+39',
numericOnly: true
});
I'm agree with ghost, looks like theres an issue using prefix with phone, this is my instance:
var cleave = new Cleave('.cleave-input', {
phone: true,
prefix: '+52',
phoneRegionCode: 'MX',
numericOnly: true
});
cleavejs v1.2.1
Sorry, I did finally reproduce, turns out this was missing in react component, but not for the vanilla one. Fix released in https://github.com/nosir/cleave.js/releases/tag/v1.4.9
Most helpful comment
Sorry, I did finally reproduce, turns out this was missing in react component, but not for the vanilla one. Fix released in https://github.com/nosir/cleave.js/releases/tag/v1.4.9