Skip to content

Commit

Permalink
And clear when search is cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Oct 27, 2023
1 parent 5bc9bb4 commit aeb0aa6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/html/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function doSearch(val) {
console.log("Search event.target.value", val);

if (!val) {
updateCurrentLocation(val);
showPage();
} else {
const results = searchInIndex(val);
Expand Down

0 comments on commit aeb0aa6

Please sign in to comment.