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 ad6c1ec commit 566a656Copy full SHA for 566a656
src/avatar/internal.tsx
@@ -106,11 +106,10 @@ export default function InternalAvatar({
106
>
107
{showTooltip && tooltipText && (
108
<Tooltip
109
- className={styles.tooltip}
110
- value={tooltipText}
111
- trackRef={handleRef}
112
- // This is added to ensure tooltip is closed when clicked for consistency with other tooltip usages
113
- contentAttributes={{ onPointerDown: () => setShowTooltip(false) }}
+ className={styles.tooltip}
+ content={tooltipText}
+ getTrack={() => handleRef.current}
+ onEscape={() => setShowTooltip(false)}
114
/>
115
)}
116
0 commit comments