Skip to content

Commit 5261260

Browse files
committed
Try to fix goddamn search
1 parent 379aba0 commit 5261260

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

static/assets/js/search.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,13 @@ document.addEventListener("DOMContentLoaded", () => {
3737
document.addEventListener("mousedown", (e) => {
3838
if (!searchInput.contains(e.target) && !searchResults.contains(e.target)) {
3939
searchResults.style.display = "none";
40-
} else {
41-
// If input is not empty search again
42-
displayResults();
4340
}
4441
});
4542

4643
searchInput.addEventListener("focusin", (e) => {
4744
displayResults();
4845
});
4946

50-
searchInput.addEventListener("focusout", (e) => {
51-
searchResults.style.display = "none";
52-
});
53-
54-
5547
function displayResults() {
5648
if (results.length === 0) {
5749
searchResults.innerHTML = `<div style="padding: 0.5em; color: var(--text-colour);">No results found</div>`;

0 commit comments

Comments
 (0)