Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show suggestion on dynamic suggestion item addition #142

Open
TwunTee opened this issue Aug 23, 2018 · 3 comments
Open

Show suggestion on dynamic suggestion item addition #142

TwunTee opened this issue Aug 23, 2018 · 3 comments
Assignees
Labels
Milestone

Comments

@TwunTee
Copy link

TwunTee commented Aug 23, 2018

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.

@fire1
Copy link

fire1 commented Nov 1, 2018

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

@Mauker1
Copy link
Owner

Mauker1 commented Jan 3, 2019

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 Mauker1 self-assigned this Jan 3, 2019
@Mauker1 Mauker1 added the bug label Jan 3, 2019
@Mauker1 Mauker1 added this to the 2.0.0 milestone Jan 3, 2019
@Mauker1
Copy link
Owner

Mauker1 commented Feb 9, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants