Skip to content

Mat Select sharing options between selects #15945

@mrphaell

Description

@mrphaell

Bug, feature request, or proposal:

Page with multiple mat select is sharing options. The options for each select are generated after a DB search, but when you make the second search, both the second and the first select shares that set of options.

What is the expected behavior?

Each mat select have it's own set of options

What is the current behavior?

Set of options are shered between mat select, even when they are in different components.

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.

StackBlitz starter: https://goo.gl/wwnhMV

What is the expected behavior?

Every mat select should have its own set of options, no matter how many selects are in the page.

Is there anything else we should know?

After the first search on the Select 1:
1

After the second search on the Select 2:
2

After the second search on the Select 1:
3

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

Angular 6.0.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions