Need a size attribute for mat-select
Bug, feature request, or proposal:
Feature request
What is the expected behavior?
Currently mat-select shows only one mat-option at a time. We need a way to control the number of visible items. Such as:
<mat-select placeholder="Favorite food" size="10">
</mat-select>
What is the current behavior?
The size attribute as no effect on mat-select.
What are the steps to reproduce?
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 5.0.0 Angular material: 5.0.1
Is there anything else we should know?
Any updates on this? Can I contribute a fix?
We are looking to use the size attribute too. If material is not planning to support the size attribute, any recommendations on what we should be using instead?
I would like to use a size attribute also, or something equivalent.
Any updates on this?
Needed here too...
We have a new version of the select coming up (same logic and API, but different CSS) which will support changing the size of the dropdown using CSS. You can try it out by importing the MatSelectModule from @angular/material-experimental/mdc-select.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.