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.

md-select doesn't higlight default option when ng-model is an object #2862

@quix-portal

Description

@quix-portal

Using md-select with a presetted ng-model the relative md-option is not highlighted nor marked as selected if the model referes to an object. But when the user select an option then this is marked as selected and is highlighted correctly.
The problem is more markable when the default value is not the first in the list, because the first element gets an highlight effect (different from the select one).

If the model refers to a primitive type, such as a number, it works as expected.

See http://codepen.io/anon/pen/pJyBzX

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions