Perform search on suggestion click

This commit is contained in:
PrestonN 2019-08-07 14:47:42 -04:00
parent 6dd62407d8
commit f5c3da95e2
1 changed files with 2 additions and 0 deletions

View File

@ -168,8 +168,10 @@ let searchSuggestionsView = new Vue({
}, },
methods: { methods: {
newSearchTerm: (text) => { newSearchTerm: (text) => {
loadingView.seen = true;
document.getElementById('search').value = text; document.getElementById('search').value = text;
getSearchSuggestion(); getSearchSuggestion();
search();
searchSuggestionsView.seen = false; searchSuggestionsView.seen = false;
}, },
}, },