Skip to content

fix(Select): prevent scroll from hidden bubble input in constrained layouts#3876

Open
mixelburg wants to merge 1 commit into
radix-ui:mainfrom
mixelburg:fix/select-bubble-input-scroll
Open

fix(Select): prevent scroll from hidden bubble input in constrained layouts#3876
mixelburg wants to merge 1 commit into
radix-ui:mainfrom
mixelburg:fix/select-bubble-input-scroll

Conversation

@mixelburg

Copy link
Copy Markdown
Contributor

Description

The hidden native select element (SelectBubbleInput) uses position: absolute (from VISUALLY_HIDDEN_STYLES) but does not pin its location to the top-left of its containing block. In constrained flex layouts (e.g. nested flex containers with height: 100dvh inside a form), the element is positioned low on the page, causing it to extend the scrollable area.

Fix

Add top: 0 and left: 0 to the SelectBubbleInput style to pin it to the top of its containing block, preventing the layout extension.

Fixes #3875

…ayouts

The hidden native <select> element (SelectBubbleInput) uses position:absolute but doesn't pin its location, causing it to be positioned low on the page in constrained flex layouts and extending the scrollable area. Adding top:0 and left:0 pins it to the top of its containing block.

Fixes radix-ui#3875
@changeset-bot

changeset-bot Bot commented May 12, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 042a0d5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a 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.

[Select] Document scrolls due to hidden <select> element in forms with constrained layouts

1 participant