Skip to content

[material-ui][Select] No visible highlight when focus is on another Element #39497

Open
@supidupicoder2

Description

@supidupicoder2

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Link to live example:
https://react-tgv59j-vsvdvu.stackblitz.io
chrome_33BRQbhtul
Steps:

  1. Open link
  2. Click on dropdown
  3. Preselection for "Twenty" is visible
  4. If i hit "T" on the keyboard, the selection goes to the next option
  5. Now eiher click the button below, or click the button, hold the left mouse cursor, drag it somewhere else on the whitespace, and release it
  6. If you click the dropdown again, nothing is preselected, at least visibly
  7. If you hit "T", the second element is instantly selected

ALSO:
If you hit "Enter" in Step 6 without selecting any other element, "Twenty" will be selected. So i assume it is preselected, but not visibly.

Current behavior 😯

After clicking the button, the preselection is not visible anymore.

Expected behavior 🤔

I would either expect "Twenty" already being visibly preselected in Step 6, or the Keyboard Action of Step 7 selecting the first Element.

Context 🔦

I currently have an issuew with keyboard controlls sometimes not working for some dropdowns in my application. When the keyboard controlls do not work, there is also nothing preselected.
I assume this is part of the issue.

Your environment 🌎

See stackblitz live example environment.
Browser was Chrome.

Metadata

Metadata

Assignees

Labels

bug 🐛Something doesn't workcomponent: selectThis is the name of the generic UI component, not the React module!on holdThere is a blocker, we need to waitpackage: material-uiSpecific to @mui/material

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions