Skip to content

md-input displays value on top of placeholder if disabled and value is bound from a component class property #2816

Closed
@marcoross

Description

@marcoross

Bug, feature request, or proposal:

md-input displays value on top of placeholder if disabled and value is bound from a component class property

What is the expected behavior?

The placeholder shall be smaller and displayed above the value

What is the current behavior?

The placeholder is displayed with a larger font size behind the value

What are the steps to reproduce?

See the company input field in this plunk:
https://plnkr.co/edit/J9e4gAkC5jIEdTbyUbqd?p=preview

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

Want to use placeholder values on non-editable fields in a form to have the same name->value pattern for all items in the form.

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

@angular/material 2.0.0-beta.1
@angular 2.4.2

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaround

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions