Skip to content

Commit

Permalink
fix: onHover is not a function (#870)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored Aug 28, 2024
1 parent 471c86b commit e521289
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/PickerPanel/TimePanel/TimePanelBody/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,15 @@ export default function TimePanelBody<DateType extends object = any>(
changeOnScroll,
} = props;

const { prefixCls, values, generateConfig, locale, onSelect, onHover, pickerValue } =
usePanelContext<DateType>();
const {
prefixCls,
values,
generateConfig,
locale,
onSelect,
onHover = () => {},
pickerValue,
} = usePanelContext<DateType>();

const value = values?.[0] || null;

Expand Down

0 comments on commit e521289

Please sign in to comment.