Material: md-autocomplete: placeholder in md-autocomplete with floating label not working

Created on 20 Nov 2015  路  7Comments  路  Source: angular/material

In Autocomplete demo with Floating Label, if I add a placeholder attribute the placeholder text is not being displayed. Example is shown in the following plunker

Angular version: 1.4.7
Angular Material version: 1.0.0-rc4
Browser / Operating System: Windows 7 Professional SP1, Chrome 46.0.2490.86, Firefox 42.0, IE11

urgent

Most helpful comment

If someone need this, I've made this decorator to allow placeholder work with floating label.

All 7 comments

+1 These should be allowed to work together.

Similar to how it works with md-input-container:
image

image

May be a duplicate.

@ThomasBurleson -- I found a simple fix and created a PR for it https://github.com/angular/material/pull/6817

This issue is closed as part of our deprecation effort.
For details, see our post Spring Cleaning 2016.

If someone need this, I've made this decorator to allow placeholder work with floating label.

@gmanriqueUy The link is broken, can you share your solution again? Thanks!

@rbournissent Oh, sorry about that. Link fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Dona278 picture Dona278  路  3Comments

kasajian picture kasajian  路  3Comments

WebTechnolog picture WebTechnolog  路  3Comments

achaussende picture achaussende  路  3Comments

chriseyhorn picture chriseyhorn  路  3Comments