ngx-mask
ngx-mask copied to clipboard
Invalid behavior for month mask
🐞 bug report
Is this a regression?
Probably not.
Description
If you type a month that is less than 10 and then try to type more numbers, the cursor stays right after the month mask, giving the wrong value.
🔬 Minimal Reproduction
Go to the website and try to type 1/34. It also occurs in your own example here. I expect to see the same value but it is equal to 1/43.
🌍 Your Environment
Angular CLI: 11.2.1
Node: 15.8.0
OS: win32 x64
Angular:
...
Ivy Workspace:
Package Version
------------------------------------------------------
@angular-devkit/architect 0.1102.1 (cli-only)
@angular-devkit/core 11.2.1 (cli-only)
@angular-devkit/schematics 11.2.1 (cli-only)
@schematics/angular 11.2.1 (cli-only)
@schematics/update 0.1102.1 (cli-only)