Skip to content

Commit

Permalink
chore: Conditional render on FloatingPortalin Tooltip (#934)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes authored Oct 13, 2023
1 parent f774f81 commit 62eeeab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/react/src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ export const Tooltip = forwardRef<HTMLDivElement, TooltipProps>(
ref: childMergedRef,
}),
)}
<FloatingPortal>
{internalOpen && (
{internalOpen && (
<FloatingPortal>
<>
<div
ref={refs.setFloating}
Expand All @@ -148,8 +148,8 @@ export const Tooltip = forwardRef<HTMLDivElement, TooltipProps>(
/>
</div>
</>
)}
</FloatingPortal>
</FloatingPortal>
)}
</>
);
},
Expand Down

0 comments on commit 62eeeab

Please sign in to comment.