material icon indicating copy to clipboard operation
material copied to clipboard

placeholder autocomplete not working fine. it's hiden

Open AdwardNguyen opened this issue 10 years ago • 2 comments

Actual Behavior:

  • What is the issue? *placeholder autocomplete
  • What is the expected behavior? please help me fix it

CodePen (or steps to reproduce the issue): *

  • CodePen Demo which shows your issue:
  • Details: test
<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.8
  • Angular Material Version: 1.1.0

Additional Information:

  • Browser Type: * Google Chrome
  • Browser Version: *Version 53.0.2785.116 m
  • OS: * WINDOWS 10 Enterprise
  • Stack 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.

AdwardNguyen avatar Sep 24 '16 17:09 AdwardNguyen

facing the same issue...

asirigada avatar Sep 28 '16 21:09 asirigada

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.

devversion avatar Oct 01 '16 18:10 devversion