JsDaddy / ngx-mask

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

Pasting value into mask with prefix also add prefix. #1269

Closed XadGar closed 11 months ago

XadGar commented 1 year ago

🐞 bug report

Is this a regression?

It reproduces in 15.2.0 version and later. Version 15.1.5 and lower works fine.

Description

When any value is pasted into mask with prefix prefix digits also added into value

🔬 Minimal Reproduction

1) open live documentation image 2) paste any string value without "prefix", for example "11qq22" 3) mask added "71122" image

🔥 Exception or Error

No exceptions or errors

andriikamaldinov1 commented 11 months ago

@XadGar Thanks for using Ngx-mask. Please update to latest version. It example all work as expected - https://jsdaddy.github.io/ngx-mask/#4