Skip to content

Commit

Permalink
Change strategy condition in Tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
pallendes committed Dec 29, 2023
1 parent 996ff63 commit 84b99ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tooltip/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const Tooltip = ({

const { styles, attributes } = usePopper(referenceElement, popperElement, {
placement: position,
strategy: strategy !== "portal" ? strategy : "absolute",
strategy: strategy === "fixed" ? "fixed" : "absolute",
modifiers: [{ name: "offset", options: { offset: [0, 8] } }],
});

Expand Down

0 comments on commit 84b99ff

Please sign in to comment.