We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eba4b01 commit 3d58319Copy full SHA for 3d58319
src/components/Tooltip/Tooltip.tsx
@@ -460,14 +460,14 @@ const Tooltip = ({
460
const elementRefs = new Set(anchorRefs)
461
462
anchorsBySelect.forEach((anchor) => {
463
- if(disableTooltip?.(anchor)){
464
- return;
+ if (disableTooltip?.(anchor)) {
+ return
465
}
466
elementRefs.add({ current: anchor })
467
})
468
469
const anchorById = document.querySelector<HTMLElement>(`[id='${anchorId}']`)
470
- if (anchorById) {
+ if (anchorById && !disableTooltip?.(anchorById)) {
471
elementRefs.add({ current: anchorById })
472
473
0 commit comments