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.

autocomplete: response after Ajax call does not update dropdown list #6554

@alphazhe

Description

@alphazhe

I am giving ajax call in md-search-text-changed. So every time text is changed ajax call is done. But ajax takes time to give response and before even coming response it shows no data found and when response comes it does not get updated in dropdown even if array provided in md-items is updated. I tried different methods to make ajax call even in md-items but it doesn't work. Then i gave md-delay of 5 sec then it rendered result but that is of previous search query. It does not update result for latest search query.

Can you at least show me proper working example of autocomplete with ajax call in md-search-text-changed so that I'll get idea where I am going wrong or it's issue of md-autocomplete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - Lots of Commentsneeds: demoA CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issueresolution: works as expectedThe functionality works as designed and documented.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions