ngx-mask icon indicating copy to clipboard operation
ngx-mask copied to clipboard

Pattern mask bug with autofill

Open dvirtudazo opened this issue 1 year ago • 2 comments

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

dvirtudazo avatar Oct 31 '23 18:10 dvirtudazo

@dvirtudazo Hi. Could you provide stackblitz ??

andriikamaldinov1 avatar Nov 08 '23 13:11 andriikamaldinov1

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

dvirtudazo avatar Nov 08 '23 14:11 dvirtudazo