From b64f9b31f1ac04f231eba5a5cc431b9f8b972062 Mon Sep 17 00:00:00 2001 From: daudix Date: Wed, 16 Oct 2024 23:30:38 +0300 Subject: [PATCH] Comment out code that prevented opening the search after clicking outside of it --- templates/partials/search_fuse.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/partials/search_fuse.html b/templates/partials/search_fuse.html index 7043370..0e32538 100644 --- a/templates/partials/search_fuse.html +++ b/templates/partials/search_fuse.html @@ -79,7 +79,7 @@ }); function makeTeaser(result, searchVal) { - const TEASER_SIZE = 25; + const TEASER_SIZE = 20; let output = `
${result.item.title}`; for (const match of result.matches) { @@ -105,11 +105,11 @@ return output + "
"; } - window.addEventListener("click", function (event) { + /*window.addEventListener("click", function (event) { if (searchSetup && searchBar.getAttribute("disabled") === null && !searchContainer.contains(event.target)) { toggleSearch(); } - }, { passive: true }); + }, { passive: true });*/ document.addEventListener("keydown", function(event) { if (event.key === "/") {