mui / mui/material-ui

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

Open
#39,497 8 comments 1 reaction 1 assignee View on GitHub

@DiegoAndai is already working on this.

Since Oct 18, 2023.

on hold scope: select type: bug
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.