fix(search): reset lastSearch
variable if keywords are empty (#858)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/832
This commit is contained in:
parent
cabaf06ef2
commit
f7e442cabb
@ -227,6 +227,7 @@ class Search {
|
|||||||
Search.updateQueryString(keywords, true);
|
Search.updateQueryString(keywords, true);
|
||||||
|
|
||||||
if (keywords === '') {
|
if (keywords === '') {
|
||||||
|
lastSearch = '';
|
||||||
return this.clear();
|
return this.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user