Comment out code that prevented opening the search after clicking outside of it
This commit is contained in:
@ -79,7 +79,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
function makeTeaser(result, searchVal) {
|
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>`;
|
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) {
|
for (const match of result.matches) {
|
||||||
@ -105,11 +105,11 @@
|
|||||||
return output + "</div>";
|
return output + "</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
window.addEventListener("click", function (event) {
|
/*window.addEventListener("click", function (event) {
|
||||||
if (searchSetup && searchBar.getAttribute("disabled") === null && !searchContainer.contains(event.target)) {
|
if (searchSetup && searchBar.getAttribute("disabled") === null && !searchContainer.contains(event.target)) {
|
||||||
toggleSearch();
|
toggleSearch();
|
||||||
}
|
}
|
||||||
}, { passive: true });
|
}, { passive: true });*/
|
||||||
|
|
||||||
document.addEventListener("keydown", function(event) {
|
document.addEventListener("keydown", function(event) {
|
||||||
if (event.key === "/") {
|
if (event.key === "/") {
|
||||||
|
Reference in New Issue
Block a user