Skip to content

Support positioning mat-select panel under the trigger #14105

@takamori

Description

@takamori

Bug, feature request, or proposal:

disableOptionCentering as discussed on https://material.angular.io/components/select/api does not appear to have any effect and prevents implementing the "Exposed Dropdown Menu" mentioned at https://material.io/design/components/menus.html#exposed-dropdown-menu .

What is the expected behavior?

Setting disableOptionCentering to true would change the options to appear either below or above the mat-select field.

What is the current behavior?

The options appear over the field, whether or not disableOptionCentering is used.

What are the steps to reproduce?

https://stackblitz.com/edit/angular-khatke
I've tried using


<mat-select placeholder="Favorite food" [disableOptionCentering]="true">

What is the use-case or motivation for changing an existing behavior?

This prevents the ability to implement the Exposed Dropdown Menu.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Repro's at least while using Angular/Material npm 7.0.3 on Chrome 70.0.3538.77 on Mac.

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    GThis is is related to a Google internal issueP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/selectfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions