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

Cursor changes place when deleting multiple characters in version 17

Open pieterjansas opened this issue 1 year ago • 0 comments

When the input has a prefix in combination with mask and showMaskTyped, and you're deleting multiple characters. The cursor jumps to place 4 when 5 characters are left.

This only happens from Angular version 17, in version 16 it worked as expected.

https://github.com/JsDaddy/ngx-mask/assets/11029312/477699e9-c56e-41b8-9cb7-ad482aed8af9

Example bug version 17: https://stackblitz.com/edit/stackblitz-starters-ex5l1t?file=src%2Fmain.ts

Example working version 16: https://stackblitz.com/edit/angular-sdodhb?file=src%2Fmain.ts

pieterjansas avatar Feb 02 '24 11:02 pieterjansas