fix: datepicker missing picker (#6243)

This commit is contained in:
Katherine 2025-02-19 10:10:21 +08:00 committed by GitHub
parent d62911b646
commit dcd2279eeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -197,7 +197,7 @@ DatePicker.RangePicker = function RangePicker(props: any) {
{ label: t('Next 90 days'), value: rangesValue.next90Days },
];
const targetPicker = value ? inferPickerType(value?.[0]) : picker;
const targetPicker = value ? inferPickerType(value?.[0], picker) : picker;
const targetDateFormat = getPickerFormat(targetPicker) || format;
const newProps: any = {
utc,