Closed TheNetStriker closed 10 months ago
@TheNetStriker Thanks for using Ngx-mask. Please update to latest version. It example all work as expected - https://jsdaddy.github.io/ngx-mask/#6
@andriikamaldinov1 Thanks for fixing this. I'm still using Angular 15. Could you please also fix this problem in the Angular 15 version?
π bug report
Is this a regression?
I've not tested this in previous versions.
Description
When showMaskTyped is used together with keepCharacterPositions the masking characters will all be removed when all text is selected in the field. After this the masking does not work correctly anymore. When e.g. the first delimiter of the mask is reached I can not enter any more characters.
This is especially a problem when switching to the input field using the tab key because this always selects all text in the input field.
π¬ Minimal Reproduction
This can easily be reproduced on the demonstration page:
https://jsdaddy.github.io/ngx-mask/#6
π₯ Exception or Error
There is no exception or error.
π Your Environment
Angular Version:
Anything else relevant?
I've tested this with the latest Chrome and Firefox and both browsers have this problem.