Comment out code that prevented opening the search after clicking outside of it

This commit is contained in:
daudix
2024-10-16 23:30:38 +03:00
parent 841ccc5fa5
commit b64f9b31f1

View File

@ -79,7 +79,7 @@
});
function makeTeaser(result, searchVal) {
const TEASER_SIZE = 25;
const TEASER_SIZE = 20;
let output = `<div class="search-result item"><a class="result-title" href=${result.item.url}>${result.item.title}</a>`;
for (const match of result.matches) {
@ -105,11 +105,11 @@
return output + "</div>";
}
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 === "/") {