Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Select] Navigation using keyboard doesn't work when the select is inside a menu list #45476

Open
BAISTM opened this issue Mar 4, 2025 · 3 comments
Assignees
Labels
package: material-ui Specific to @mui/material status: waiting for author Issue with insufficient information

Comments

@BAISTM
Copy link

BAISTM commented Mar 4, 2025

Steps to reproduce

Steps:

  1. Open this link to live example: (required).
  2. Open the select menu dropdown.
  3. Navigate using up and down arrows.

Current behavior

Cannot navigate in the select menu dropdown using the keyboard arrows when it's inside a MenuList component.

Expected behavior

No response

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: MenuList Select Navigation Keyboard

@BAISTM BAISTM added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Mar 4, 2025
@zannager zannager added the component: select This is the name of the generic UI component, not the React module! label Mar 4, 2025
@mj12albert
Copy link
Member

@BAISTM Could you share some details about your actual use-case?

MenuList is not really intended to contain a Select and is used like this: https://mui.com/material-ui/react-menu/#composition-with-menu-list

@mj12albert mj12albert added component: menu This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information and removed component: menu This is the name of the generic UI component, not the React module! component: select This is the name of the generic UI component, not the React module! status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 4, 2025
@BAISTM
Copy link
Author

BAISTM commented Mar 4, 2025

Hi @mj12albert,

In my use case, I have a popper that opens a dropdown containing a MenuList, and a Select wrapped by a MenuItem.

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels Mar 4, 2025
@zannager zannager added the package: material-ui Specific to @mui/material label Mar 4, 2025
@DiegoAndai
Copy link
Member

Hey @BAISTM, why must you wrap the Select in the MenuList? As @mj12albert said, this is not supported, but if you explain your use case in detail we might be able to guide you.

@DiegoAndai DiegoAndai added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: material-ui Specific to @mui/material status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

4 participants