Cleave.js: Prefixes in phone numbers

Created on 19 Oct 2017  路  4Comments  路  Source: nosir/cleave.js

Feature request

Enable prefixes in phone numbers.
The prefix behavior is perfect for country code.

ongoing... resolved

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

All 4 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dan-kez picture dan-kez  路  5Comments

gundlev picture gundlev  路  6Comments

yardz picture yardz  路  6Comments

drugoi picture drugoi  路  5Comments

periabyte picture periabyte  路  7Comments