material icon indicating copy to clipboard operation
material copied to clipboard

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

Open adrianchia opened this issue 11 years ago • 7 comments

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

adrianchia avatar Nov 20 '15 16:11 adrianchia

+1 These should be allowed to work together.

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

image

vbanuelos avatar Jan 14 '16 00:01 vbanuelos

May be a duplicate.

ThomasBurleson avatar Jan 14 '16 23:01 ThomasBurleson

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

vbanuelos avatar Jan 22 '16 21:01 vbanuelos

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

ThomasBurleson avatar Apr 28 '16 20:04 ThomasBurleson

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

gmanriqueUy avatar Jan 06 '17 19:01 gmanriqueUy

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

rbournissent avatar Jun 02 '17 14:06 rbournissent

@rbournissent Oh, sorry about that. Link fixed.

gmanriqueUy avatar Jun 03 '17 00:06 gmanriqueUy