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.

md-contact-chips search list displaying blank on the demo itself #4660

Closed

Description

@KSanthanam

I was getting blank search list in my md-contact-chips. Then I tested on the demo of the official site itself. which, the same problem exists on the site example https://material.angularjs.org/latest/#/demo/material.components.chips

screen shot 2015-09-16 at 2 56 01 pm

Activity

  1. alexitooi commented on Sep 16, 2015

    @alexitooi

    +1, same with autocomplete on master (working in release 0.11.0)

  2. topherfangio commented on Sep 16, 2015

    @topherfangio
    Contributor

    This should be fixed in master already due to #4391:

    https://material.angularjs.org/HEAD/#/demo/material.components.chips

    Note the difference between HEAD [master] and latest [0.11.0/the latest official release] in the URL.

    Are you still seeing it on the demo site? If so, what browser are you using? I can't reproduce it in Chrome.

  3. KSanthanam commented on Sep 16, 2015

    @KSanthanam
    Author

    @topherfangio You are right. /latest/..... demo site has the bug while /HEAD/... demo site doesn't. I am using Chrome Version 45.0.2454.85 (64-bit) on Mac.

    How do I access the HEAD code .Currently I use the link
    https://ajax.googleapis.com/ajax/libs/angular_material/0.11.0/angular-material.min.js

    I don't want to do bower. Is it possible to access through URL?

  4. topherfangio commented on Sep 16, 2015

    @topherfangio
    Contributor

    Yup, you can access it via: https://material.angularjs.org/HEAD/angular-material.css and https://material.angularjs.org/HEAD/angular-material.js.

    The easiest way to get at this is to open the HEAD version of the site, click a demo, click the "Edit on Codepen" link in the top right and then click the "Settings" button when that opens. It should show you all the URLs you need for that version.

    This changes with every single build, though, so you definitely don't want to use it in production; it's just for testing and Codepens generally.

  5. KSanthanam commented on Sep 16, 2015

    @KSanthanam
    Author

    @topherfangio Thank you for that. I have the icons in the autocomplete list is mis-aligned. What is the CSS I should adjust. Because it pops as autocomplete I am not able to access the stylesheet when it comes visible.
    screen shot 2015-09-17 at 12 15 25 am

  6. KSanthanam commented on Sep 16, 2015

    @KSanthanam
    Author

    @topherfangio I found out. it is .md-contact-suggestion

  7. alexitooi commented on Sep 16, 2015

    @alexitooi

    @topherfangio my time is very limited to provide a codepen which reproduces the issue. But I am using an autocomplete with ng-repeat, something like this:

    <table>
    <tr ng-repeat="customer in searchModel.customers">
    <td>
              <md-autocomplete required
                               md-selected-item="customer.vb"
                               ng-disabled="!customer.selected"
                               md-search-text="customer.searchText"
                               md-items="vb in searchModel.vbs"
                               md-item-text="vb.searchName"
                               md-selected-item-change="selectVb(customer, vb)"
                               md-search-text-change="searchVbs(customer)">
                <md-item-template>
                  <span md-highlight-text="customer.searchText">{{vb.searchName}}</span>
                </md-item-template>
                <md-not-found>{{'dialog.addcustomer.novbfound' | translate}}</md-not-found>
              </md-autocomplete>
            </td>
    </tr>
    </table>

    With that code on master branch I will not see the text of {{vb.searchName}}, but the items can be selected. Same happens on my chip code. With the release branch 0.11.0 everything works as expected?!?

    maybe related to #4667

  8. topherfangio commented on Sep 16, 2015

    @topherfangio
    Contributor

    @alexitooi Indeed; this seems like exactly #4667.

  9. topherfangio commented on Sep 16, 2015

    @topherfangio
    Contributor

    @alexitooi A fix for #4667 was just pushed to master (8849213). Can you see if the new version fixes your issue and allows your {{vb.searchName}} again?

  10. alexitooi commented on Sep 17, 2015

    @alexitooi

    great thank you, now autocomplete and chip work again (highlight as well=)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions