FIX: If you go to full page search, stop loading

This commit is contained in:
Robin Ward 2016-08-09 16:11:14 -04:00
parent db3ae803c5
commit 8321bdab4e
1 changed files with 2 additions and 0 deletions

View File

@ -161,6 +161,8 @@ export default createWidget('search-menu', {
fullSearch() { fullSearch() {
if (!isValidSearchTerm(searchData.term)) { return; } if (!isValidSearchTerm(searchData.term)) { return; }
searchData.results = [];
searchData.loading = false;
SearchHelper.cancel(); SearchHelper.cancel();
const url = this.fullSearchUrl(); const url = this.fullSearchUrl();
if (url) { if (url) {