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 default min date set to new Date('0001-01-01')
If user don't input year then clamp function set the date to min date and return 12/31.
To allow this, we can remove the DEFAULT_MIN_DATE from min parameter in function createMinMaxDatePostprocessor.
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 thenclamp
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;
https://github.com/taiga-family/maskito/blob/c81cda5d3c2e6f5f87aedfa984f7f235edca8c2b/projects/kit/src/lib/processors/min-max-date-postprocessor.ts#L52