question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Bug 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.

Screenshot 2022-06-21 at 20 36 20

Expected behavior

After choosing an item in Select component, text in Dialog is not highlighted on hover.

Reproducible example

CodeSandbox Template

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:open
  • Created a year ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

5reactions
llStaraillcommented, Sep 6, 2022

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; }

3reactions
andy-hookcommented, Sep 6, 2022

perhaps we should consider this a functional style (especially given native menus don’t allow you to select item text anyway and the action is on pointerup).

I agree

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found