Skip to content

fix(select): prevent text selection on items#3974

Open
fayonation wants to merge 1 commit into
radix-ui:mainfrom
fayonation:fix/select-item-user-select-1488
Open

fix(select): prevent text selection on items#3974
fayonation wants to merge 1 commit into
radix-ui:mainfrom
fayonation:fix/select-item-user-select-1488

Conversation

@fayonation

Copy link
Copy Markdown

Summary

  • Sets userSelect: 'none' on Select items to prevent accidental text selection when interacting with the dropdown

Fixes #1488

Problem

In Firefox (especially inside dialogs), dragging over Select options can highlight item text instead of selecting the option.

Test plan

  • pnpm vitest run packages/react/select/src/select.test.tsx
  • Storybook Within Dialog — options have user-select: none
  • CI passes on PR

Made with Cursor

Apply user-select: none to Select items so Firefox does not remain in
selection mode after closing a Select inside a Dialog. Fixes radix-ui#1488.

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

changeset-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: adbe0f0

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.

[Dialog/Select] Selection mode is active after choosing an item in Select in Firefox

1 participant