diff --git a/packages/crayons-core/src/components/datepicker/datepicker.tsx b/packages/crayons-core/src/components/datepicker/datepicker.tsx index aa79784c5..8ac9e32fb 100644 --- a/packages/crayons-core/src/components/datepicker/datepicker.tsx +++ b/packages/crayons-core/src/components/datepicker/datepicker.tsx @@ -1038,6 +1038,14 @@ export class Datepicker { }) || !this.isDateWithinMinMaxDate(parsedDate.valueOf(), false) ) { + console.info( + year < this.minYear, + year > this.maxYear, + !isValid(parsedDate), + !isMatch(parsedDate, this.displayFormat, { + locale: this.langModule, + }) || !this.isDateWithinMinMaxDate(parsedDate.valueOf(), false) + ); this.isDateInvalid = !!parsedDate; this.state = this.showErrorOnInvalidDate && this.isDateInvalid