Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(select): prevent popup jumping when scrolling large lists#9112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Hamed-Ajaj wants to merge1 commit intoshadcn-ui:main
base:main
Choose a base branch
Loading
fromHamed-Ajaj:fix/base-ui-select-scroll-jump

Conversation

@Hamed-Ajaj
Copy link
Contributor

@Hamed-AjajHamed-Ajaj commentedDec 16, 2025
edited
Loading

Fix Base UI Select popup jumping on scroll

Closes#9108

Problem

When using the Base UISelect with large option lists, scrolling inside the popup caused the content to visually jump/move. This happened consistently when the popup height was constrained.

Root cause

The issue was caused by using a dynamic height (max-h-(--available-height)) on the Select popup.
Base UI recalculates--available-height while scrolling, which triggers continuous repositioning of the popup via the Positioner.

Solution

Removed the dynamic max-height from the Select popup to prevent layout recalculation during scroll.
This stabilizes the popup position and eliminates the jumping behavior for large lists.

Notes

  • This appears to be a Base UI positioning behavior rather than a consumer misuse.
  • Removing the height constraint avoids the feedback loop between scroll, layout, and repositioning.
  • A more robust fix may belong upstream in Base UI.

Testing

  • Verified scrolling behavior with large option lists
  • Popup position remains stable during scroll

@vercel
Copy link
Contributor

vercelbot commentedDec 16, 2025

@Hamed-Ajaj is attempting to deploy a commit to theshadcn-pro Team onVercel.

A member of the Team first needs toauthorize it.

@Hamed-Ajaj
Copy link
ContributorAuthor

It's a base ui positioner problem with max-heigh.

anymax-heigh will cause this problem

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[bug]: Base ui select with large items keeps moving

1 participant

@Hamed-Ajaj

[8]ページ先頭

©2009-2025 Movatter.jp