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

Pasting non-numeric characters triggers a stuck opening parenthesis in the phone mask #1501

Open
DavidMSands opened this issue Feb 12, 2025 · 0 comments

Comments

@DavidMSands
Copy link

🐞 bug report

Is this a regression?

Unsure

Yes, the previous version in which this bug was not present was: ....

Description

When using ngx-mask with a phone input mask, pasting a non-numeric character causes the mask’s opening parenthesis to appear and remain even after clicking out of the field. This partial mask persists until the input is fully cleared, which appears confusing.

Image

A clear and concise description of the problem...

🔬 Minimal Reproduction

StackBlitz Recreation

🔥 Exception or Error

No explicit console error appears, but the input’s display just shows a partially masked state. The opening parenthesis remains even even though the pasted letters are removed.



🌍 Your Environment

Angular Version:

"@angular/core": "^18.0.0"



Anything else relevant?

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