Skip to content

Commit ee55c00

Browse files
committed
fix(ItemBase): tooltip logic * 6
1 parent 399d9a9 commit ee55c00

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/components/content/ItemBase/ItemBase.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,13 @@ export function useAutoTooltip({
462462
}, []);
463463

464464
const finalLabelProps = useMemo(() => {
465-
return {
465+
const props = {
466466
...(labelProps || {}),
467-
ref: handleLabelElementRef,
468-
} as Props & { ref?: any };
467+
};
468+
469+
delete props.ref;
470+
471+
return props;
469472
}, [labelProps, handleLabelElementRef]);
470473

471474
const renderWithTooltip = useCallback(

0 commit comments

Comments
 (0)