We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3cefb4 commit ec00060Copy full SHA for ec00060
src/components/content/ItemBase/ItemBase.tsx
@@ -543,7 +543,7 @@ export function useAutoTooltip({
543
);
544
545
return {
546
- labelRef: mergedLabelRef,
+ labelRef: handleLabelElementRef,
547
labelProps: finalLabelProps,
548
isLabelOverflowed,
549
isAutoTooltipEnabled,
@@ -727,7 +727,7 @@ const ItemBase = <T extends HTMLElement = HTMLDivElement>(
727
)}
728
{finalPrefix && <div data-element="Prefix">{finalPrefix}</div>}
729
{children || labelProps ? (
730
- <div ref={labelRef} data-element="Label" {...finalLabelProps}>
+ <div data-element="Label" {...finalLabelProps} ref={labelRef}>
731
{children}
732
</div>
733
) : null}
0 commit comments