Skip to content

Input type datetime-local overlaps with placeholder #1853

Closed

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".

Activity

  1. self-assigned this
    on Nov 14, 2016
  2. added 2 commits that reference this issue on Nov 14, 2016
    9c43fe0
    62da739
  3. mmalerba commented on Dec 14, 2016

    @mmalerba
    Contributor

    This is fixed for md-input-container which will replace md-input

  4. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  5. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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