Skip to content

Bug: Select doesn't have initial value when change detection set to onPush #2269

Closed
@goldenbearkin

Description

@goldenbearkin

Bug, feature request, or proposal:

Bug

What is the expected behavior?

should show the initial value set by form builder.

e.g.

this.form = this.fb.group({
      name: 'angular',
      sex: 'F'
    });

What is the current behavior?

when change detection set to onPush, Select shows empty value.

What are the steps to reproduce?

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://plnkr.co/edit/G8ueOSwYMCZTigydRHbs

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

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

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