Skip to content

In shadow DOM, keyboard not working for Select menu #34061

@jacobweberbowery

Description

@jacobweberbowery

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

When Select menu (and its popover) is displayed within a shadow DOM, arrow keys have no effect.

Expected behavior 🤔

Arrow keys should select menu items.

(I'm not sure to what extent shadow DOM is supported, but it seems to be mostly working otherwise.)

Steps to reproduce 🕹

Steps:

  1. Load https://codesandbox.io/s/hopeful-noether-88fukr
  2. This renders a React root into a shadow DOM, and also puts the Emotion styles there using an Emotion CacheProvider.
  3. Inside it is a Select menu with disablePortal=true (so it can use the styles).
  4. Click the Select menu so its popover appears.
  5. Press one of the arrow keys. The selection doesn't change.

Context 🔦

Rendering a MUI app entirely within a web component's shadow DOM.

Your environment 🌎

CodeSandbox

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: selectChanges related to the select.type: bugIt doesn't behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions