fix: datepicker cursor for date-fns, close #5302
parent
7999cdecbf
commit
207c944e21
|
@ -105,7 +105,7 @@ const generateConfig: GenerateConfig<Date> = {
|
|||
const date = parseDate(formatText, format, new Date(), {
|
||||
locale: Locale[dealLocal(locale)],
|
||||
});
|
||||
if (isValid(date) && isMatch(formatText, format)) {
|
||||
if (isValid(date) && formatText.length === format.length && isMatch(formatText, format)) {
|
||||
return date;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue