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 dropdown box flows with scrolling #25564

Closed
2 tasks done
mahametiq opened this issue Mar 30, 2021 · 2 comments
Closed
2 tasks done

Autocomplete dropdown box flows with scrolling #25564

mahametiq opened this issue Mar 30, 2021 · 2 comments
Labels
component: autocomplete This is the name of the generic UI component, not the React module!

Comments

@mahametiq
Copy link

Hello together, thanks in advance for your support :)

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

when trying to use the Autocomplete component from Material UI, I face an issue with wrong position of the drop down while scrolling. The drop down has a fixed position and is not set under the text field of Autocomplete. The Autocomplete is used inside a web component. Do you have an idea, what it could be? Think nested scroll views are a big issue here. This behaviour seems to be for me as a bug. Issue is in chrome as well in firefox.

Expected Behavior 🤔

The position of the drop down from auto complete should remain if I scroll the "outer" ScrollView.

Steps to Reproduce 🕹

Steps:

  1. use two ScrollViews => the inner in a web component, the outer could be normal
@mahametiq mahametiq added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Mar 30, 2021
@mahametiq
Copy link
Author

Uploading Bildschirmfoto 2021-03-30 um 16.59.06.png…

@oliviertassinari oliviertassinari added component: autocomplete This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 30, 2021
@oliviertassinari
Copy link
Member

This sounds like the same as #17473. The popup of the autocomplete is rendered inside a portal by default. You can either disable it or change the container to something else than the root element.

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!
Projects
None yet
Development

No branches or pull requests

2 participants