JsDaddy / ngx-mask

Angular Plugin to make masks on form fields and html elements.
https://jsdaddy.github.io/ngx-mask
MIT License
1.15k stars 298 forks source link

placeHolderCharacter doesn't work with keepCharacterPositions #1347

Open KaiBrouxAca opened 5 months ago

KaiBrouxAca commented 5 months ago

🐞 bug report

Is this a regression?

No, didn't work in any version

Description

When [keepCharacterPositions]="true" and you want to have a placeholder like this: [placeHolderCharacter]="'dd-mm-yyyy'", you are not able to fill in more than 1 digit into the input.

🔬 Minimal Reproduction

https://stackblitz.com/edit/angular-ivy-bxqstk?file=src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.component.ts,src%2Findex.html

🔥 Exception or Error

No exceptions are thrown.

🌍 Your Environment

Angular Version:

Angular CLI: 14.2.6 Node: 14.21.3 Package Manager: npm 6.14.18 OS: darwin arm64

Anything else relevant?

Nothing else is relevant.