Radix Primitives is an open-source UI component library for building high-quality, accessible design systems and web apps. Maintained by @workos.
15.85k
stars
821
forks
source link
Option to disable popover autoUpdate #2555
Open
edenstrom opened 11 months ago
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: