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

Is there a way to add to the suggestions? #352

Open
dougschallmoser opened this issue Nov 20, 2020 · 2 comments
Open

Is there a way to add to the suggestions? #352

dougschallmoser opened this issue Nov 20, 2020 · 2 comments

Comments

@dougschallmoser
Copy link

Has anybody been able to add a suggestion? Or better yet, I would like to implement "Current Location" as one of the suggestions when the search bar is clicked on, before the user types anything. Is this possible?

@mhesham32
Copy link

I think you can use react state and you can modify it to your needs like this

({getInputProps, suggestions, getSuggestionItemProps, loading }) => {
   setSuggestionsState(prev => [..prev,...suggestions]);
}

@sohrabch
Copy link

@mhesham32 did you get a way to do it ? i am also looking for a way to add some Favorite addresses from my Db and the suggestions seem to be read only. @hibiken any ideas about extra user given suggestion renderings ?

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

No branches or pull requests

3 participants