mui / mui/material-ui

[autocomplete] When inside of Dialog, impossible to select last item

Open
#45,487 2 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

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

Description

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

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.