Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo837 committed Sep 29, 2023
1 parent 8d51abf commit 968065b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panels/DatetimePanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function DatetimePanel<DateType>(props: DatetimePanelProps<DateType>) {
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) {
Expand Down

0 comments on commit 968065b

Please sign in to comment.