Skip to content

fix: recalculate popover anchor position on open#2199

Open
2u841r wants to merge 1 commit intosyntaxfm:mainfrom
2u841r:main
Open

fix: recalculate popover anchor position on open#2199
2u841r wants to merge 1 commit intosyntaxfm:mainfrom
2u841r:main

Conversation

@2u841r
Copy link
Copy Markdown
Contributor

@2u841r 2u841r commented Apr 28, 2026

Summary

  • Fixes sort/filter dropdowns opening at wrong position after scrolling on /shows
  • anchor.ts now listens for the popover toggle event and recalculates position when newState === 'open'

Root Cause

getBoundingClientRect() was only called on resize — never when the popover opened. After scrolling, the cached button position was stale.

Closes #2198

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 28, 2026

@2u841r is attempting to deploy a commit to the Syntax Team on Vercel.

A member of the Team first needs to authorize it.

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.

Sort/filter dropdowns open at wrong position after scrolling

1 participant