Skip to content

Commit edc12df

Browse files
committed
fix(ItemBase): resize observer
1 parent 94b144f commit edc12df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/content/ItemBase/ItemBase.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ const ItemBase = <T extends HTMLElement = HTMLDivElement>(
519519
}, [children, isAutoTooltipEnabled, checkLabelOverflow]);
520520

521521
useEffect(() => {
522-
if (!isAutoTooltipEnabled) return;
522+
if (!isAutoTooltipEnabled || typeof children !== 'string') return;
523523

524524
const label = mergedLabelRef.current;
525525
if (!label) return;

0 commit comments

Comments
 (0)