Skip to content

fix(select): align content when all items are disabled#3973

Open
fayonation wants to merge 2 commits into
radix-ui:mainfrom
fayonation:fix/select-all-disabled-1663
Open

fix(select): align content when all items are disabled#3973
fayonation wants to merge 2 commits into
radix-ui:mainfrom
fayonation:fix/select-all-disabled-1663

Conversation

@fayonation

Copy link
Copy Markdown

Summary

  • Fall back to the first item for content alignment when every Select item is disabled
  • Adds a regression test and Storybook All Items Disabled reproduction story

Fixes #1663

Problem

When all Select items are disabled, the content alignment logic never finds a valid item to measure against, leaving the dropdown with no visible options.

Test plan

  • pnpm vitest run packages/react/select/src/select.test.tsx
  • Storybook All Items Disabled — Option A and Option B remain visible when open
  • CI passes on PR

Made with Cursor

fayonation and others added 2 commits June 23, 2026 20:31
Fall back to the first item for item-aligned positioning when no enabled
items exist. Fixes radix-ui#1663.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@changeset-bot

changeset-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ac7ce54

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

This PR includes changesets to release 2 packages
Name Type
@radix-ui/react-select Patch
radix-ui 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.

[Select] Select isn't visible if all options are disabled

1 participant