You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using paper-autocomplete as a "suggestion" service in a search box, where we show guesses for what the user wants to search for in the suggestions, but still want to allow the user to submit their own search query.
What's the easiest way to get this functionality, where either we trigger a select when the user selects an item from the dropdown, or we trigger a select when the user hits Enter, for instance?
You could do something like this. If the user's input matches something you've got in your list of suggestions it will return true, otherwise, it will return false.
I'm using paper-autocomplete as a "suggestion" service in a search box, where we show guesses for what the user wants to search for in the suggestions, but still want to allow the user to submit their own search query.
What's the easiest way to get this functionality, where either we trigger a select when the user selects an item from the dropdown, or we trigger a select when the user hits Enter, for instance?
Currently, I'm doing the following:
The text was updated successfully, but these errors were encountered: