ngx-mask
ngx-mask copied to clipboard
Caret / focus before prefix after clearing field
🐞 bug report
Is this a regression?
No.
Description
If a field has a prefix
and [showMaskTyped]="true"
, when the input field is cleared, the focus-caret is placed before the prefix, but it should be placed after the prefix.
To clear the input field, select all text (via CTRL-A) then delete via backspace or delete.
🔬 Minimal Reproduction
https://stackblitz.com/edit/angular-ivy-mask-jbe55w
🌍 Your Environment
Angular Version:
11.0.2
ngx-mask Version:
11.1.0
Browser Version:
Chrome 94.0.4606.61