JsDaddy / ngx-mask

Angular Plugin to make masks on form fields and html elements.
https://jsdaddy.github.io/ngx-mask
MIT License
1.15k stars 298 forks source link

ngx-mask with special characters at the beginning #1294

Closed mnovikovleobit closed 2 months ago

mnovikovleobit commented 9 months ago

🐞 bug report

Is this a regression?

Not sure, but looks like no

Description

If mask starts with a special character (I tested it with braces and parentheses), it will type in the special character on any keypress (characters that are not allowed in the mask itself) and then block all the next ones.

🔬 Minimal Reproduction

ngx-mask live demo Second mask from the bottom, ALLOW FEW MASK IN ONE EXPRESSION. Try typing any of the characters that are not in the mask.

🌍 Your Environment

Not environment-specific

andriikamaldinov1 commented 2 months ago

@twesk Thanks for using Ngx-mask. Please update to latest version. It example all work as expected - [ngx-mask live demo](https://jsdaddy.github.io/ngx-mask/#8)