Implement collection of items with nested interactive elements
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
Putting a TextField with a label in a Menu and then typing the the first character of the label causes the focus to change. Typing any other character does not produce this behavior. This seems to always be happen for any label.
Expected Behavior 🤔
The focus should not change.
Steps to Reproduce 🕹
https://codesandbox.io/s/basicmenu-material-demo-forked-gyq9n?file=/demo.js
Steps:
- Click to open the menu
- Type
i(the first character of the label) and the focus automatically changes. - Close and reopen the menu.
- Type any other character and the focus does not change
Context 🔦
Your Environment 🌎
`npx @mui/envinfo`
System:
OS: macOS 11.6
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 4.13 GB / 32.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 12.22.1 - ~/.nvm/versions/node/v12.22.1/bin/node
npm: 6.14.12 - ~/.nvm/versions/node/v12.22.1/bin/npm
Managers:
Homebrew: 3.2.3 - /usr/local/bin/brew
pip2: 18.1 - /usr/local/bin/pip2
pip3: 21.1.3 - /usr/local/bin/pip3
RubyGems: 3.0.3 - /usr/bin/gem
Utilities:
Make: 3.81 - /usr/bin/make
GCC: 4.2.1 - /usr/bin/gcc
Git: 2.30.1 - /usr/bin/git
Clang: 13.0.0 - /usr/bin/clang
Servers:
Apache: 2.4.48 - /usr/sbin/apachectl
Nginx: 1.21.0 - /usr/local/bin/nginx
Virtualization:
Docker: 20.10.8 - /usr/local/bin/docker
SDKs:
iOS SDK:
Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0
IDEs:
Nano: 2.0.6 - /usr/bin/nano
Vim: 8.2 - /usr/bin/vim
WebStorm: 2021.2.2
Xcode: 13.0/13A233 - /usr/bin/xcodebuild
Languages:
Bash: 3.2.57 - /bin/bash
Perl: 5.30.2 - /usr/bin/perl
PHP: 7.3.29 - /usr/bin/php
Python: 2.7.16 - /usr/bin/python
Python3: 3.9.6 - /usr/local/bin/python3
Ruby: 2.6.3 - /usr/bin/ruby
Databases:
PostgreSQL: 13.3 - /usr/local/bin/postgres
SQLite: 3.32.3 - /usr/bin/sqlite3
Browsers:
Chrome: 94.0.4606.61
Firefox: 92.0
Safari: 15.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodeSandbox reproduction and inspect the Menu and TextField interaction described in the issue. Reproduce the focus change by typing the first label character, then trace the relevant component behavior; done means focus remains unchanged for that character and other input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100