Skip to content

Input type datetime-local overlaps with placeholder #1853

@TrevorBroderick1

Description

@TrevorBroderick1

Bug, feature request, or proposal:

When the value string is empty, the placeholder of the md-input will overlap with the field.
image

What is the expected behavior?

The placeholder should stay above the field

What is the current behavior?

The placeholder overlaps with the field

What are the steps to reproduce?

Bind an empty string to md-input with type datetime-local.

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

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

It's broken.

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

Angular 2.1.2
Material Alpha 10, 9, 8 at least.
Windows 10
Chrome (datetime-local is only supported in chrome afaik).

Is there anything else we should know?

This was fixed for type="date" in #1238 but not for type="datetime-local".

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