-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
TextField component's with select option and disableScrollLock menu stays fixed when scrolling #37752
Comments
Thanks, it looks like a bug. Would you like to contribute to the project by investigating it? |
I am afraid I don't have possibility to look into it anytime soon. |
I'm open to taking a look at this. To confirm, the expected behavior is that the dropdown options menu doesn't move on scroll correct? |
Menu should be attached to input. When it is opened by default it is attached to bottom center of it's anchor element (in this case it is input or input wrapper div, not sure exactly), but when you scroll, input scrolls with the page, but menu stays in fixed position. Expected behavior for menu is to allways stick to anchor element on scroll. |
This makes sense. Let me start looking into this. |
Similar to #17353 |
Hi, this issue was solved ? which version of MUI has the fix ? |
Hi! It was merged a couple of minutes ago 🎉 The fix will come in the next release next week. The latest is |
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example: https://codesandbox.io/s/bitter-violet-wpfhc4?file=/src/App.js
Steps:
true
true
in MenuPropsCurrent behavior 😯
When select dropdown menu is open and page is scrolled, TextField moves, but menu popper stays in fixed position
Expected behavior 🤔
Expecting for drop down menu to stay attached to it's anchor element and move together on scroll
Context 🔦
No response
Your environment 🌎
No response
The text was updated successfully, but these errors were encountered: