Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Cannot have a label and placeholder in ng-input-container #4462

Description

@WanaByte

Labels clobber placeholders when md-input-container has the md-no-float attribute set. Instead of the label should not be clobbering the placeholder, the label should remain in label position.

angular-material-placeholder-label-bug

See demo: http://codepen.io/anon/pen/RWNVJz

HTML:

<div ng-controller="DemoCtrl" layout="column" class="inputdemoIcons" ng-app="MyApp">
  <br>
  <md-content layout-padding="" class="autoScroll">
    <md-input-container md-no-float>
      <label>Name</label>
      <input ng-model="user.name" type="text" placeholder="Johnny Appleseed">
    </md-input-container>
  </md-content>
</div>

JavaScript:

angular
  .module('MyApp')
  .controller('DemoCtrl', function($scope) {
    $scope.user = {
      name: '',

    };
  });

Metadata

Metadata

Assignees

Labels

pr: merge readyThis PR is ready for a caretaker to review

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions