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

Caret / focus before prefix after clearing field

Open hv-pul opened this issue 3 years ago • 0 comments

🐞 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

hv-pul avatar Oct 04 '21 09:10 hv-pul