Skip to content

Commit

Permalink
fix: code formating and disableTooltip check for anchorById
Browse files Browse the repository at this point in the history
  • Loading branch information
nareshpingale authored and gabrieljablonski committed Aug 4, 2024
1 parent eba4b01 commit 3d58319
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -460,14 +460,14 @@ const Tooltip = ({
const elementRefs = new Set(anchorRefs)

anchorsBySelect.forEach((anchor) => {
if(disableTooltip?.(anchor)){
return;
if (disableTooltip?.(anchor)) {
return
}
elementRefs.add({ current: anchor })
})

const anchorById = document.querySelector<HTMLElement>(`[id='${anchorId}']`)
if (anchorById) {
if (anchorById && !disableTooltip?.(anchorById)) {
elementRefs.add({ current: anchorById })
}

Expand Down

0 comments on commit 3d58319

Please sign in to comment.