Skip to content

[Autocomplete] When inside of Dialog, impossible to select last item #45487

Open
@MonstraG

Description

@MonstraG

Steps to reproduce

Steps:

  1. Open this link to live example: https://codesandbox.io/p/sandbox/nostalgic-lake-ygf3pr
  2. Look at the preview url in preview windw, it will be something like https://ygf3pr.csb.app/
  3. Open that url on a phone
  4. Open dialog
  5. Open Autocomplete
  6. Scroll to the bottom, trying to select the last film (Monthy Python)

Current behavior

While scrolling, autocomplete's menu (dropdown thingie) will move to be below autocomplete, and escape the bounds of reality, making last 3 items unclickable:

Image

Expected behavior

The menu (dropdown thingie) is always rendered in a way where all elements are selectable. It seems that in this case the dropdown should appear above the Autocomplete instead.

Context

I think the only reason this cannot be reproduced on the desktop is virtual keyboard. Workarounds are welcome also.

Your environment

npx @mui/envinfo
Running @mui/envinfo in codesandbox is difficult.

Android 14, One Ui 6.1, Firefox: 135.0.1

Search keywords: Autocomplete, scroll, overflow, dialog, modal, portal

Metadata

Metadata

Assignees

Labels

component: autocompleteThis is the name of the generic UI component, not the React module!package: material-uiSpecific to @mui/material

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions