From 7e5a4eda59d17caebbab12f3855f3e8a491794d2 Mon Sep 17 00:00:00 2001 From: yoyo837 Date: Fri, 29 Sep 2023 15:57:32 +0800 Subject: [PATCH] fix --- src/panels/DatetimePanel/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/DatetimePanel/index.tsx b/src/panels/DatetimePanel/index.tsx index c0e6ace63..117a6279d 100644 --- a/src/panels/DatetimePanel/index.tsx +++ b/src/panels/DatetimePanel/index.tsx @@ -140,7 +140,7 @@ function DatetimePanel(props: DatetimePanelProps) { selectedDate = generateConfig.setMonth(selectedDate, generateConfig.getMonth(defaultValue)); selectedDate = generateConfig.setDate(selectedDate, generateConfig.getDate(defaultValue)); } else if (source === 'date' && value && disabledTime) { - selectedDate = disableTimeCheck(value); + selectedDate = disableTimeCheck(selectedDate); } if (onSelect) {