Skip to content

Commit

Permalink
fix(ui): fix date-picker preset error
Browse files Browse the repository at this point in the history
  • Loading branch information
xiejay97 committed Jun 9, 2023
1 parent c3ed034 commit b4a252e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions packages/ui/src/components/date-picker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,6 @@ function DatePicker(props: DDatePickerProps, ref: React.ForwardedRef<DDateInputR
} else {
enter();
}
updatePanelRef.current?.(d[index]);
updateTimePickerPanelRef.current?.(d[index]);
};

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ export default function Demo() {
/>
<DDatePicker
dRange
dShowTime
dPresetDate={{
Today: () => {
Now: () => {
return new Date();
},
'Last week': () => {
Expand Down

0 comments on commit b4a252e

Please sign in to comment.