Skip to content

md-input-container placeholders can disappear behind input #2434

Closed
@hans-pragt

Description

@hans-pragt

Bug, feature request, or proposal:

If the value of an <input> element is set through data binding, tabbing into and out of will cause the placeholder to act as if there is no input and lower itself behind the input text.

What is the expected behavior?

The placeholder works correctly regards of how the value of the input it set.

What is the current behavior?

The placeholder sits behind the text in the input.

What are the steps to reproduce?

You will see the wrong behavior here:

http://plnkr.co/edit/PHrAb1LPvmhhitdj8W4F?p=preview

After editing the text in the input, the placeholder will stay in the right spot.

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

Windows 10 / Chrome 55.0.2883.87 m

Is there anything else we should know?

I like the new plunkr template, thanks for updating it.

Metadata

Metadata

Assignees

No one assigned

    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