fixed bugs:

- suppressed display of search results if nothing was found but there were previous searches
- improved display timing of search results/initial pages, which led to false displays
This commit is contained in:
J-Klinke
2024-07-05 12:30:40 +02:00
parent 49eda4ce0a
commit 15f743d8ab
3 changed files with 8 additions and 5 deletions

View File

@@ -47,10 +47,10 @@ searchButton.addEventListener("click", () => {
});
searchBar.addEventListener("input", () => {
updateSections();
clearTimeout(searchBarTimeout);
searchBarTimeout = setTimeout(() => {
fetchQuery(createQuery(), true);
updateSections();
}, searchDelay);
});