mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 18:23:02 +02: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);
|
Search.updateQueryString(keywords, true);
|
||||||
|
|
||||||
if (keywords === '') {
|
if (keywords === '') {
|
||||||
|
lastSearch = '';
|
||||||
return this.clear();
|
return this.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue