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

Update parser to prepend dialCode on model value #97

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

michaelmcauley
Copy link

NOTE: I closed PR #75 and am re-submitting. I had originally forked to a company-owned repo which has some extra requirements that cause headaches w/r/t to pull requests. It looked like everyone was on board with these changes, and there are no merge conflicts as of now.

We are using this directive to allow users to input a telephone number, which is then saved to our database. In order for the number to re-display properly, we need to supply the prefix on subsequent page views so the directive will show the proper flag and format the number as expected.

This simple change force-includes the country prefix whenever updating the model value. This behavior could easily be made optional via a config flag.

@rachyandco
Copy link

Is there an update on this PR? We are using the modify version. Would be happy to see it in the main project.

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

Successfully merging this pull request may close these issues.

2 participants