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

Pattern mask bug with autofill #1263

Open dvirtudazo opened 11 months ago

dvirtudazo commented 11 months ago

Numeric mask like '000-00-0000' (SSN format) saves autofill data for any input less than the length of the mask (in this case 9 digits). The only time a full length input is saved is if it the input starts with "9".

999-99-9999 gets saved 911-11-1112 gets saved 811-11-1112 doesn't get saved. 888-88-8888 doesn't get saved. 888-88-888 gets saved 123-45-6 gets saved 123-45-6789 doesn't get saved

andriikamaldinov1 commented 10 months ago

@dvirtudazo Hi. Could you provide stackblitz ??

dvirtudazo commented 10 months ago

@andriikamaldinov1 https://stackblitz.com/edit/angular-kyf3co?file=src%2Fmain.ts