Skip to content

Select option styling bug #4476

Closed
Closed
@nstohler

Description

@nstohler

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Select component: setting an option programmatically should clear any existing previous selected item styles.

What is the current behavior?

The selection is changed, but the previously selected item has still the selected style

What are the steps to reproduce?

In the Plunker:

  • Open the select, notice the styling of "tacos", don't change anything, close the select
  • click the reset button
  • Open the select again: "pizza" and "tacos" have both the selected styling (mat-selected)

Providing a Plunker (or similar) is the best way to get the team to see your issue.
http://plnkr.co/edit/o866DpIMsaYVmPPjwNRf?p=preview

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

consisten look

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

tested it with Chrome 54

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions