Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Should be able to set max no. items to display in md-autocomplete dropdown #8751

@chrismortega

Description

@chrismortega

Actual behavior:

  • What is the issue? md-autocomplete only shows 2 or so items max when pulled down.
  • What is the expected behavior? Should be an option to display n items if the real-estate is available.

You can write some css to make the list taller, but you have to hard-code it so that if the number of entries is smaller than your hard-coded value you end up with blank space. The md-autocomplete should be updated to allow a max, but still shrink when there aren't enough items to reach that max.

CodePen or Steps to reproduce the issue: *

  • CodePen Demo which shows your issue :
  • Details:

Angular Versions: *

  • Angular Version: *
  • Angular Material Version: *

Additional Information:

  • Browser Type: *
  • Browser Version: *
  • OS: *
  • Stack Traces:

Shortcut to create a new CodePen Demo.
Note: * indicates required information. Without this information, your issue may be auto-closed.

Do not modify the titles or questions. Simply add your responses to the ends of the questions.
Add more lines if needed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions