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.

mdInput duplicates the label while bind placeholder #8251

@leocaseiro

Description

@leocaseiro

I realized that if we want to bind the placeholder, the automatic label generated get's duplicated on Chrome and Safari on OSX.

My code example:

$scope.label = 'Date of Birth';
<md-input-container>
    <input type="text" placeholder="{{label}}">
</md-input-container>

Here is a GIF of this bug:
material-placeholder-duplicated

Angular 1.5.3
Angular Material 1.1.0-rc4
https://codepen.io/leocaseiro/pen/GZYZxr

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions