Skip to content

Popper: Fix anchor positioning when using custom anchor#3807

Open
Benrski wants to merge 3 commits intoradix-ui:mainfrom
Benrski:fix/popper-anchor-positioning
Open

Popper: Fix anchor positioning when using custom anchor#3807
Benrski wants to merge 3 commits intoradix-ui:mainfrom
Benrski:fix/popper-anchor-positioning

Conversation

@Benrski
Copy link

@Benrski Benrski commented Feb 10, 2026

Description

When both PopoverAnchor and PopoverTrigger are present, the trigger briefly registers itself as the anchor. After the custom anchor takes over, its effect compares against its own previous value, sees no change, and skips the update — so the popover stays on the trigger.

This PR compares against the current anchor in context instead of a local previous value. This should still prevent unnecessary updates while correctly picking up the custom anchor.

Closes #3659
Closes #3760

@changeset-bot
Copy link

changeset-bot bot commented Feb 10, 2026

🦋 Changeset detected

Latest commit: 976f2fb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@radix-ui/react-popper Patch
@radix-ui/react-hover-card Patch
@radix-ui/react-menu Patch
@radix-ui/react-popover Patch
radix-ui Patch
@radix-ui/react-select Patch
@radix-ui/react-tooltip Patch
@radix-ui/react-context-menu Patch
@radix-ui/react-dropdown-menu Patch
@radix-ui/react-menubar Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Popover] PopoverContent doesn't anchor to PopoverAnchor when the anchor is positioned absolutely Popover anchor with relative div broken in 1.1.15

1 participant