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

adding the value of "00/00/0000" for the mask "M0/d0/0000" is considered valid?

Open abdulrahmanriyaz opened this issue 1 year ago • 0 comments

🐞 bug report

Is this a regression?

Not sure.

Description

Its possible to add all zeroes in the date month format and it gets accepted as valid e.g with the mask "M0/d0/0000" the value "00/00/0000" is considered valid. Do you know if this is intended behavior or is this a bug?

<input placeholder="MM/dd/YYYY" mask="M0/d0/0000" [dropSpecialCharacters]="false" [leadZeroDateTime]="true" />

🌍 Your Environment

Angular Version:


Package                         Version
---------------------------------------------------------
@angular/cli                    17.0.1
@angular/compiler-cli           17.0.3
ngx-mask                            ^18.0.0,

abdulrahmanriyaz avatar Aug 05 '24 17:08 abdulrahmanriyaz