material
material copied to clipboard
placeholder autocomplete not working fine. it's hiden
Actual Behavior:
What is the issue? *placeholder autocompleteWhat is the expected behavior?please help me fix it
CodePen (or steps to reproduce the issue): *
CodePen Demo which shows your issue:Details:
<style type="text/css">
md-autocomplete md-autocomplete-wrap input::-moz-placeholder,
md-autocomplete md-autocomplete-wrap input:-moz-placeholder,
md-autocomplete md-autocomplete-wrap input::-webkit-input-placeholder {
color: red; margin:0; text-align:left; padding:0; display:normal; opacity:1; flex:none; vertical-align:text-top;
}
md-autocomplete md-autocomplete-wrap input {
color: green;
}
</style>
<!--<div layout="column" ng-cloak class="md-autocomplete-suggestions-container" >-->
<md-autocomplete md-selected-item="selectedItem"
md-search-text-change="searchTextChangesearchText"
md-search-text="searchText"
md-selected-item-change="selectedItemChange(item)"
md-items="item in querySearch(searchText)"
md-item-text="item[displayProperty]"
md-min-length="0" placeholder="Test" aria-disabled="false" md-menu-class="autotest-md">
<md-item-template>
<!--<span md-highlight-text="ctrl.searchText" md-highlight-flags="^i">{{item.TenBacSi}}</span>-->
<span md-highlight-text="ctrl.searchText" md-highlight-flags="^i">{{item[displayProperty]}}</span>
</md-item-template>
</md-autocomplete>
<!--</div>-->
Angular Versions: *
Angular Version:1.5.8Angular Material Version:1.1.0
Additional Information:
Browser Type: *Google ChromeBrowser Version: *Version 53.0.2785.116 mOS: *WINDOWS 10 EnterpriseStack Traces:
Shortcut to create a new CodePen Demo.
Note: * indicates required information. Without this information, your issue may be auto-closed.
Do not modify the titles or questions. Simply add your responses to the ends of the questions. Add more lines if needed.
facing the same issue...
This issue is still not providing much information..
From what I could understand, having a custom placeholder color does not work within the autocomplete?
- Works for me on Chrome, Firefox, IE11: http://codepen.io/DevVersion/pen/WGkjXG?editors=1100
I can reopen the issue if a demo, which shows the issue, is provided.