[Dialog/Select] Selection mode is active after choosing an item in Select in Firefox
See original GitHub issueBug report
Current Behavior
Following this discussion https://github.com/radix-ui/primitives/discussions/1484#discussioncomment-2993174.
Using Dialog 0.1.8-rc.47 and Select 0.1.2-rc.49 in Firefox 101.0.1, after choosing an item in Select, selection mode is activated and text content in Dialog is highlighted on hover.
Expected behavior
After choosing an item in Select component, text in Dialog is not highlighted on hover.
Reproducible example
Choose option 1 from the select and hover on the text Very basic modal, it will be on selection mode and highlight the text.
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:5
Top Results From Across the Web
<select>: The HTML Select element - HTML - MDN Web Docs
Focusing on the <select> element (e.g. using Tab ). · Selecting an item at the top or bottom of the range they want...
Read more >Select does not open dropdown onclick | Firefox Support Forum
I am currently using a datepicker from jQuery UI 1.10 with a select dropdown so that the user can choose year. The "yearpicker"...
Read more >Firefox options, preferences and settings - Mozilla Support
Options /Preferences panels give you access to Firefox settings. This article describes what types of settings are available in each panel.
Read more >The Dialog element - HTML: HyperText Markup Language
Indicates that the dialog is active and can be interacted with. When the open attribute is not set, the dialog shouldn't be shown...
Read more >Firefox does not start after choosing a user profile but does start if ...
When I select a user profile from the 'choose user profile' dialog box nothing ... So firefox will not start only after a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

After being puzzled by this for quite a while, I realized that the example implementation adds a style to the SelectItem, which my project was missing. This fixed the bug for me.
.select__item { user-select: none; }I agree