Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo837 committed Oct 7, 2023
1 parent fcd8f1f commit 7e5a4ed
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 7e5a4ed

Please sign in to comment.