Skip to content

fix(Select): ensure Select.Value labels persist after select is closed in type="multiple"#2066

Open
ieedan wants to merge 2 commits into
huntabyte:mainfrom
ieedan:select-value-fix
Open

fix(Select): ensure Select.Value labels persist after select is closed in type="multiple"#2066
ieedan wants to merge 2 commits into
huntabyte:mainfrom
ieedan:select-value-fix

Conversation

@ieedan

@ieedan ieedan commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #2062

This was something I simply wasn't thinking about in #2026 when items unmount they take their visual labels with them. So if you haven't provided the items prop to Select.Root as soon as the menu unmounts the items you will no longer have labels.

This can of course be fixed by just providing the items prop but it would be nice if it was a little more robust to avoid issues like #2062

@changeset-bot

changeset-bot Bot commented Jun 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3344198

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

This PR includes changesets to release 1 package
Name Type
bits-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

@ieedan ieedan mentioned this pull request Jun 4, 2026
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
bits-ui ✅ Ready (View Log) Visit Preview 3344198

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.

Weird select behavior

2 participants