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

Mask phone number with 10 or 11 digits #203

Open
mrleblanc101 opened this issue May 23, 2023 · 1 comment
Open

Mask phone number with 10 or 11 digits #203

mrleblanc101 opened this issue May 23, 2023 · 1 comment

Comments

@mrleblanc101
Copy link

I have this mask, but I can't make it work properly.

<the-mask
  v-model="form.numero_telephone"
  type="tel"
  :mask="['(###) ###-####', '# (###) ###-####']"
  :class="{ 'is-invalid-input': errors.numero_telephone }"
/>

When I type exactly 10 number, it apply the 11 number mask.
So 123 456 7890 is formatted 1 (234) 567-890# instead of (123) 456-7890

@cesartagplus
Copy link

I'm having similar issue, but only with firefox ...

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