This repository was archived by the owner on Sep 5, 2024. It is now read-only.
autocomplete: dropdown always uses max-height when md-not-found is used #11426
Labels
needs: investigation
The cause of this issue is not well understood and needs to be investigated by the team or community
P4: minor
Minor issues. May not be fixed without community contributions.
type: bug
Milestone
Bug, enhancement request, or proposal: Bug
CodePen and steps to reproduce the issue:
CodePen Demo which demonstrates the issue: pOJMKB
Detailed Reproduction Steps:
What is the expected behavior?
The dropdown should have height 48px
What is the current behavior?
The dropdown has height 240px (as if there were five results)
What is the use-case or motivation for changing an existing behavior?
The current behaviour is ugly and therefore bad UI/UX.
Which versions of AngularJS, Material, OS, and browsers are affected?
Is there anything else we should know? Stack Traces, Screenshots, etc.
As shown by the GIF I included above, after performing the following steps, the autocomplete gets the height correct:
Also, for those looking for a quick fix, I used an ugly hack: inside the
getSearchValues()
function I calculate the correct height (which is48 * numberOfResults
) and force the height of the container using javascript. See it working on this other codepen:Note: I know I am using the autocomplete in a slightly unusual fashion (with the "type to search" thing and the "too many" thing) but I believe this constitutes a bug regardless.
The text was updated successfully, but these errors were encountered: