JsDaddy / ngx-mask

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

leadZeroDateTime and showMaskTyped issue #1202

Closed Leonek closed 1 year ago

Leonek commented 1 year ago

🐞 bug report

Is this a regression?

No.

Description

When showMaskTyped and leadZeroDateTime are ON with date input there is issue while typing value (some random zeros are appear and there is no way to remove them).

I figure out that there is problem with such mask 0000-M0-d0 Hh:m0:s0.sss or 0000-M0-d0. With d0-M0-0000 Hh:m0:s0.sss seems working fine.

I guess its critical issue cuz it is core functionality of lib.

🔬 Minimal Reproduction

https://stackblitz.com/edit/angular-ivy-vwnpbx?file=src%2Fapp%2Fapp.component.html

🌍 Your Environment

Angular v15

Anything else relevant?

Browser: Chrome 115

andriikamaldinov1 commented 1 year ago

@Leonek Thanks for your using Ngx-Mask. Please update to latest version. It example, all work as expected - https://stackblitz.com/edit/angular-ivy-wbvme9?file=src%2Fapp%2Fapp.component.html