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

Question on Phone Mask with International numbers #807

Open
Light407 opened this issue Aug 17, 2024 · 1 comment
Open

Question on Phone Mask with International numbers #807

Light407 opened this issue Aug 17, 2024 · 1 comment

Comments

@Light407
Copy link

I have a question regarding international numbers.

This library is really good and it works great in MAUI Hybrid which we have found that many libraries fail. So first of all thanks for a great lib!

We are using this to mask phone numbers in typical US formats such as "(###) ###-####" and it works great. The question now is how we can support rare cases when the user wants to enter an international number. Can we somehow detect if a user types a '+' sign and if so simply remove the masking (and if user removes the plus we put back the mask)? We are using this on a regular HTML input field.

Again thank you very much!

@pyetrosafe
Copy link

Please, type your examples in both formats you desire.

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

2 participants