Skip to content

Ability to imperatively float md-input placeholder #2466

Closed

Description

@kara

Currently there is a floatingPlaceholder property on md-input-container that controls whether or not you'd like a floating placeholder at all. This property effectively disables the floating placeholder.

However, it's not meant to be an imperative way to toggle the floating placeholder on and off. If you try to set floatingPlaceholder to true, it doesn't actual float it. It will still be gated on the two conditions that the value must not be empty or the input must be focused.

We should add a way to actually toggle the placeholder, not just disable it. The motivation for this change is the autocomplete. Sometimes the text field will be empty and unfocused (e.g. if you are keying down through the option list), but the placeholder shouldn't reset.

cc @mmalerba

Activity

  1. added
    feature
    on Dec 29, 2016
  2. self-assigned this
    on Jan 10, 2017
  3. added 2 commits that reference this issue on Jan 10, 2017
    6cc3abb
    ab93d56
  4. added a commit that references this issue on Jan 14, 2017
    ae3a89a
  5. added 3 commits that reference this issue on Jan 27, 2017
    7322c84
    edae9cc
    2055653
  6. added a commit that references this issue on Feb 3, 2017
    fb0cf8a
  7. 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.

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

feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions