MaterialSearchView icon indicating copy to clipboard operation
MaterialSearchView copied to clipboard

Show suggestion on dynamic suggestion item addition

Open TwunTee opened this issue 7 years ago • 3 comments
trafficstars

I am trying get suggestion list from the server when the user enters a text. I am using onQueryTextListener onQueryTextChange callback to trigger a network call and once the suggestion list is fetched I am adding it to suggestion list using addSuggestion. The problem i am facing is that the suggestion list is not opening up even though a valid suggestion exists unless the user types it a next character.

Example Scenario:

  1. User enters Java
  2. Fetching data from network which gives Java, Javascript
  3. Suggestion view is not opening up unless user enters "S" which then shows the suggestion as Javascript

What i want is that as soon as suggestion is added rerun the suggestion open or call a function which refreshes/opens the suggestion list.

TwunTee avatar Aug 23 '18 23:08 TwunTee

Any result ? I'm also struggling to show suggestion from server query

fire1 avatar Nov 01 '18 10:11 fire1

That's indeed a problem with the lib now. We have to create a way to trigger a new search if new items have been inserted into the suggestion list... Thanks for reporting it!

Mauker1 avatar Jan 03 '19 14:01 Mauker1

I have tested this on the upcoming 2.0.0-beta01 and it seems to be updated after new data comes in. I'll leave the issue open for a while after I make some tests, but I believe this is solved.

Mauker1 avatar Feb 09 '21 06:02 Mauker1