-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
MDC-Select custom max-height is not handled correctly #2284
Comments
Made a pull request for this: |
@drcampbell thanks for creating the PR. I created a (Codepen)[https://codepen.io/moog16/pen/RQJoom] to reproduce your issue. I'm just wondering if you could check it out, and see if this is the correct setup? |
@drcampbell I'm seeing this happen. Is this issue you are referring to? I just want to make sure we are looking at the same issue. |
@moog16 Yep, that's the issue alright! |
This is no longer an issue since we have moved to using only native select in #2462. Closing. |
I landed here after searching for --mdc-menu-max-height. It does not look like that variable is working. Menu height is stuck at 120px somehow as it gets injected into the element. Fortunately I could workaround it using max-height !important. |
What MDC Web Version are you using?
0.31.0
What browser(s) is this bug affecting?
All
What OS are you using?
Mac OS X, Windows
What are the steps to reproduce the bug?
Create a select input
Fill the select menu with 100 items or something reasonably large
Set the mdc-menu class to a max-height of 400px
Select a list item far down the list
Open the menu
Observe it doesn't open in the correct location
What is the expected behavior?
The menu opens over the select input.
What is the actual behavior?
The menu opens at the top of the page
Any other information you believe would be useful?
The text was updated successfully, but these errors were encountered: