Unknown
### Description
I'm trying to set up a mask that has 2 options. When characters are <= 10, the mask is `(000) 000-0000` and when it's >10 and <=15, the mask is `+000000000000000`. Both masks work fine, but when you move from 11 characters to 10, the cursor jumps from the end of the string to a few spaces to the left. I imagine it's because of the differences in masked characters, and I see this issue has been brought up in the past and supposedly fixed, but it is not working properly for me. Please see the stackblitz of the issue occuring.
## π¬ Minimal Reproduction
This stackblitz starts with your template but it seems outdated:
https://stackblitz.com/edit/angular-ivy-mask-rk2fpm?file=src%2Fapp%2Fapp.component.html
So I also made a stackblitz using Angular 17 and ngx-mask 17.0.7
https://stackblitz.com/edit/ngx-mask-cursor-issue?file=src%2Fmain.ts
type: 12345678901, it'll show +12345678901, then backspace makes it (123) 456-7890 correctly but the cursor ends up next to the 7 instead of at the end of the string.
π bug report
Is this a regression?
Unknown ### Description I'm trying to set up a mask that has 2 options. When characters are <= 10, the mask is `(000) 000-0000` and when it's >10 and <=15, the mask is `+000000000000000`. Both masks work fine, but when you move from 11 characters to 10, the cursor jumps from the end of the string to a few spaces to the left. I imagine it's because of the differences in masked characters, and I see this issue has been brought up in the past and supposedly fixed, but it is not working properly for me. Please see the stackblitz of the issue occuring. ## π¬ Minimal Reproduction This stackblitz starts with your template but it seems outdated: https://stackblitz.com/edit/angular-ivy-mask-rk2fpm?file=src%2Fapp%2Fapp.component.html So I also made a stackblitz using Angular 17 and ngx-mask 17.0.7 https://stackblitz.com/edit/ngx-mask-cursor-issue?file=src%2Fmain.ts type: 12345678901, it'll show +12345678901, then backspace makes it (123) 456-7890 correctly but the cursor ends up next to the 7 instead of at the end of the string.π₯ Exception or Error
π Your Environment
Angular Version:
Anything else relevant?