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

Phone Number Mask Format #340

Open
lucianojsjr opened this issue Jul 9, 2018 · 2 comments
Open

Phone Number Mask Format #340

lucianojsjr opened this issue Jul 9, 2018 · 2 comments

Comments

@lucianojsjr
Copy link

lucianojsjr commented Jul 9, 2018

When set property in phone number mask directive (ui-br-phone-number-mask) like areaCode, should restrict the mask only to the assigned format.

Example:

<input type="text" name="field" ng-model="phoneNumber" ui-br-phone-number-mask="areaCode">

Result:

image

@matheusnicolas
Copy link

if you want to remove, just go to angular-input-masks.js. In the code and remove what you want. In my example, I removed the country code in the code, all that had country code references, I removed and it worked. Has a place in the code that has verifications (if and elifs, in the else I removed the country code condition and putted the areaCode)

@wesgtr
Copy link

wesgtr commented Sep 18, 2018

@matheusnicolas if you do in this way, and install using npm install, your changes will never work in release

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

3 participants