mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
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
1 changed files with 1 additions and 0 deletions
|
@ -227,6 +227,7 @@ class Search {
|
|||
Search.updateQueryString(keywords, true);
|
||||
|
||||
if (keywords === '') {
|
||||
lastSearch = '';
|
||||
return this.clear();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue