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

Wrong position of the caret on focus event of the input field

Open fmdz387 opened this issue 4 years ago • 1 comments

The actualValue is not set to the current value of the input field, if the value of the input is set explicitly, e.g. => input.value = 'someValue'

This is the actualValue property of ngx-mask service ngx-caret-wrong

This is the actual value of input field Screenshot 2021-02-02 151806

If this problem happens to you, trigger the input event manually.

fmdz387 avatar Feb 02 '21 14:02 fmdz387

Is there a work-around for this behavior? We have some dynamic fields, and some do not need a mask, so a blank mask causes this..

tyanders1987 avatar Feb 17 '21 23:02 tyanders1987

@fmdz387 @tyanders1987 Thanks for your using Ngx-Mask. Please update to latest version. It example, all work as expected - https://stackblitz.com/edit/angular-zffqbb?file=src%2Fmain.ts

andriikamaldinov1 avatar Jun 19 '23 10:06 andriikamaldinov1