Skip to content

md-input does not honor [value] expressions #2363

Closed
@arciisine

Description

@arciisine

Bug, feature request, or proposal:

When using input[md-input] and binding a value using [value]="expr", the internal value is not updated when [value] resolves. This in turn propagates to empty not updating once [value] resolves.

What is the expected behavior?

When setting an input's value with [value], it should be honored. The placeholder should move out of the way when value is set.

What is the current behavior?

The input believes it is empty and the placeholder stays in the original spot.

What are the steps to reproduce?

http://plnkr.co/edit/79XlYsdCjUKQvnKQyDRU?p=preview

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

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

Material 2.0.0-beta.0

Is there anything else we should know?

Metadata

Metadata

Assignees

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