🚀 - MaskitoDateMode
supports dd/mm
& mm/dd
formats
#1827
Labels
contributions welcome
Architecture is clear and community can help
feature
New feature or request
P3
This issue has low priority
scope: kit
Related to @maskito/kit
Which package(s) are relevant/related to the feature request?
@maskito/kit
Description
maskitoDateOptionsGenerator
function do not allow dd/mm and mm/dd date formats.Because function
createMinMaxDatePostprocessor
has defaultmin
date set tonew Date('0001-01-01')
If user don't input year then
clamp
function set the date tomin
date and return12/31
.To allow this, we can remove the
DEFAULT_MIN_DATE
frommin
parameter in functioncreateMinMaxDatePostprocessor
.and then return a date if
min
isundefined
const clampedDate = min ? clamp(date, min, max) : date;
maskito/projects/kit/src/lib/processors/min-max-date-postprocessor.ts
Line 52 in c81cda5
The text was updated successfully, but these errors were encountered: