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

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

Open
MonstraG opened this issue Mar 5, 2025 · 0 comments
Open

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

MonstraG opened this issue Mar 5, 2025 · 0 comments
Assignees
Labels
component: autocomplete 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

Comments

@MonstraG
Copy link
Contributor

MonstraG commented Mar 5, 2025

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

@MonstraG MonstraG added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Mar 5, 2025
@zannager zannager added the component: autocomplete This is the name of the generic UI component, not the React module! label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: autocomplete 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
Projects
None yet
Development

No branches or pull requests

3 participants