Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgraded to version 4.2.0 causing phone validation to fail for US styled phone numbers: (888) 555-1212 #111

Open
tomschreck opened this issue Oct 11, 2017 · 1 comment

Comments

@tomschreck
Copy link

US styled phone numbers are failing validation. I need to have my phone numbers styled as (888) 888-8888. This used to work with version 3.9.0. I've had to revert back to version 3.9.0.

phone-number-validation

@tomschreck
Copy link
Author

tomschreck commented Jan 3, 2018

Still having the same issue. I installed ng2-validation version 4.2.0 and libphonenumber-js version 0.4.43. I have to revert back to ng2-validation version 3.9.0 and libphonenumber-js 0.4.6.

this.DataEntryForm = this.formBuilder.group
({
...
PhoneNumber: [ new asYouType('US').input(this.DataEntryModel.Customer.PhoneNumber), Validators.compose([ Validators.required, CustomValidators.phone('US') ]) ],
...
});

Any idea when this issue will be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant