Open edenstrom opened 12 months ago
Currently when the anchor/trigger is moved, the Popover is moved accordingly.
99% of the time, this is the expected behavior.
We want to replicate a similar UI as Linear where the actual trigger of the popover changes size/position. The popover itself should not move though.
https://github.com/radix-ui/primitives/assets/4541038/ea89743d-b363-45ba-b5a7-11047a7889e8
We can sort-of get it solved by adding a position absolute div as an anchor, but not the most beautiful solution.
I would say it's a pretty niche feature, but usable for features where the Popover modifies the anchor.
Minimal reproduction of the issue: CodeSandbox link
Maybe I've missed some setting that exists that can solve it.
Related issues:
@edenstrom did you ever get this to work like the linear app?
Any update on this?
We need a way to disable this behavior easily.
Feature request
Overview
Currently when the anchor/trigger is moved, the Popover is moved accordingly.
99% of the time, this is the expected behavior.
We want to replicate a similar UI as Linear where the actual trigger of the popover changes size/position. The popover itself should not move though.
https://github.com/radix-ui/primitives/assets/4541038/ea89743d-b363-45ba-b5a7-11047a7889e8
We can sort-of get it solved by adding a position absolute div as an anchor, but not the most beautiful solution.
Who does this impact? Who is this for?
I would say it's a pretty niche feature, but usable for features where the Popover modifies the anchor.
Additional context
Minimal reproduction of the issue: CodeSandbox link
Maybe I've missed some setting that exists that can solve it.
Related issues: