Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mask for date in format "d0/M0" not working as expected - impossible to set "month" value as 10,11 or 12 #1390

Closed
onyzhin opened this issue Jul 11, 2024 · 1 comment

Comments

@onyzhin
Copy link

onyzhin commented Jul 11, 2024

🐞 bug report

Is this a regression?

Yes, the previous version in which this bug was not present was: 15.*

Description

When using mask="d0/M0" it is impossible to set the "month" value to 10, 11, or 12. The input mask does not allow these values to be entered correctly.

🔬 Minimal Reproduction

https://stackblitz.com/edit/stackblitz-starters-hzzc27?file=src%2Fmain.ts

  1. Add an input field with the mask attribute set to "d0/M0": <input mask="d0/M0" />
  2. Try to input a date with the month value as 10, 11, or 12.

🔥 Exception or Error

The input field does not allow to set the month value to 10, 11, or 12.

🌍 Your Environment

Angular Version:

16.*
17.*
18.*
@onyzhin onyzhin changed the title Mask for date in format "d0/M0" not working as expected - impossible to set "month" value as 10 11 12 Mask for date in format "d0/M0" not working as expected - impossible to set "month" value as 10,11 or 12 Jul 11, 2024
@andriikamaldinov1
Copy link
Collaborator

@onyzhin Thanks for using Ngx-mask. Please update to latest version.
It example all work as expected - https://stackblitz.com/edit/stackblitz-starters-khbhgl?file=package.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants