mui / mui/material-ui

[menu][select] Items can still be activated during exit transition

Open
#27,992 1 comment 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

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

Description

Current Behavior 😯

After selecting an entry from the Select (simple, non-native), if you immediately click the select again while it is closing (to make a different selection), the selection immediately selects a different entry (instead of displaying the selection list again).

Expected Behavior 🤔

While closing the select, the ul elements are currently hidden but still clickable. Make them non-clickable (pointer-events: none) so that they can fade out but clicking a different entry won't cause a change. At least when they are completely gone, they shouldn't be clickable. Currently there's a 1/2 second window or so where they are. When the main thread is running slowly, the window seems longer.

Steps to Reproduce 🕹

Steps:

  1. Go to https://material-ui.com/components/selects/
  2. Open a select
  3. Select "Twenty" and immediately click the select.
  4. "Ten" is selected.

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.