When the user enters some data into the masked field, and then something external to the user's input (an observable, timeout, etc.) changes showMaskTyped from "false" to "true", the caret jumps to the end of the field rather than maintaining it's position where the user is typing.
🐞 bug report
Is this a regression?
No, present in previous versions.
Description
When the user enters some data into the masked field, and then something external to the user's input (an observable, timeout, etc.) changes showMaskTyped from "false" to "true", the caret jumps to the end of the field rather than maintaining it's position where the user is typing.
🔬 Minimal Reproduction
StackBlitz demonstration: https://stackblitz.com/edit/angular-pkhtfx?file=src%2Fmain.ts
🔥 Exception or Error
Caret jumps to end of the field
🌍 Your Environment
Angular Version: