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

Selecting one or multiple values and then replacing it results in strange behaviour

Open KaiBrouxAca opened this issue 1 year ago • 1 comments

🐞 bug report

Is this a regression?

I don't know if it occurred in a previous version.

Description

If [keepCharacterPositions]="true" is added on an input, there is some strange behaviour when selecting one or multiple values and then directly replacing it with another value.

🔬 Minimal Reproduction

https://github.com/JsDaddy/ngx-mask/assets/165287931/c077bc6c-f940-4fc1-bb9f-573edb4ab700

🔥 Exception or Error

None

KaiBrouxAca avatar Apr 11 '24 14:04 KaiBrouxAca

Additional behaviour:

https://github.com/JsDaddy/ngx-mask/assets/165287931/650a6fb6-c3a8-4906-b976-52183e1fbc18

KaiBrouxAca avatar Apr 12 '24 11:04 KaiBrouxAca

@KaiBrouxAca Thanks for using Ngx-mask. Please update to latest version. It example all work as expected -https://stackblitz.com/edit/angular-17-starter-project-cjc7qw?file=src%2Fmain.ts

andriikamaldinov1 avatar Jul 03 '24 10:07 andriikamaldinov1