Popover can't use fixed strategy #5662
IgorMCesar
started this conversation in
Feature requests
Replies: 1 comment 2 replies
-
I will check if it is possible and add support for fixed strategy to popover in one of the next minor releases |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.4.1
What package has an issue?
@mantine/core
What framework do you use?
Next.js
In which browsers you can reproduce the issue?
None
Describe the bug
At the moment the lib used to position the Popover dropdown is
@floating-ui/react
, and it provides an option for the positioning strategy. The fileuse-popover.ts
, which Popover uses, doesn't allow for the strategy to be passed as an option touseFloating
.In cases the
Popover.Target
is fixed or sticky, the absolute strategy will flickerPopover.Dropdown
's position during the scroll.If possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
Docs reference: https://floating-ui.com/docs/useFloating#strategy
File to be changed: https://github.com/mantinedev/mantine/blob/master/packages/%40mantine/core/src/components/Popover/use-popover.ts
Self-service
Beta Was this translation helpful? Give feedback.
All reactions