Skip to content

Commit

Permalink
fix(datepicker): date in onSelect prop is always defined
Browse files Browse the repository at this point in the history
  • Loading branch information
raulsteurer committed Aug 13, 2024
1 parent c3634d0 commit 1d3c85d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DatePicker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface DatePickerProps extends Omit<InputGroupProps, 'onChange' | 'onS

// These collide with the props inherited from `InputGroupProps`
onChange?: (date: Date | undefined) => void;
onSelect?: (date: Date | undefined) => void;
onSelect?: (date: Date) => void;
}

export const DatePicker: React.FC<DatePickerProps> = ({
Expand Down

0 comments on commit 1d3c85d

Please sign in to comment.