Skip to content

Commit

Permalink
fix: use fixed strategy for popper
Browse files Browse the repository at this point in the history
  • Loading branch information
yndx-birman committed Jun 16, 2022
1 parent a85e7c0 commit 4f98e73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/usePopper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export function usePopper(props: PopperProps): PopoverHook {
const placements = Array.isArray(placement) ? placement : [placement];

const {attributes, styles} = useReactPopper(anchor, popperElement, {
strategy: 'fixed',
modifiers: [
{name: 'arrow', options: {enabled: Boolean(arrowElement), element: arrowElement}},
{name: 'offset', options: {offset}},
Expand Down

0 comments on commit 4f98e73

Please sign in to comment.