Skip to content

[popover] Positioner cannot track a moving virtual anchor #4534

@mj12albert

Description

@mj12albert

When the anchor is a virtual element that can move - e.g. a map marker that "moves" as a map is panned - the positioner doesn't reposition when the virtual anchor's getBoundingClientRect() changes

Screen.Recording.2026-04-06.at.4.42.21.PM.mov

Repro: https://stackblitz.com/edit/y3eogukn?file=src%2FApp.tsx

A workaround is somewhat possible but requires fighting the positioner's styles (it's a required part) and loses a bunch of Floating UI features

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: popoverChanges related to the popover component.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions