Skip to content

Commit

Permalink
fix(DatePicker): fix reference for onOpen (#13800)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
guidari and kodiakhq[bot] authored May 24, 2023
1 parent e3b3a83 commit 71412d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/DatePicker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ const DatePicker = React.forwardRef(function DatePicker(
const savedOnClose = useSavedCallback(
datePickerType === 'range' ? onCalendarClose : onClose
);
const savedOnOpen = useSavedCallback(() => onOpen);
const savedOnOpen = useSavedCallback(onOpen);

const datePickerClasses = cx(`${prefix}--date-picker`, {
[`${prefix}--date-picker--short`]: short,
Expand Down

0 comments on commit 71412d8

Please sign in to comment.