Skip to content

Commit

Permalink
fix(components): use fragment for tooltip return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel committed Feb 27, 2024
1 parent b2f879e commit 336947a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/tooltip/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const Tooltip = ({
);

return (
<div>
<>
<div
ref={(el) => el && setReferenceElement(el)}
onMouseEnter={() => !isControlled && setShow(true)}
Expand All @@ -79,6 +79,6 @@ export const Tooltip = ({
) : (
renderTooltipContent()
)}
</div>
</>
);
};

0 comments on commit 336947a

Please sign in to comment.