From 8e259537f8c71f33a1fa04302926dea047dd9449 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sat, 30 Sep 2023 19:51:50 +0200 Subject: [PATCH] Revert "enable search field autofocus" This reverts commit 8408ebf944adb4746b1f87884d84e6a3679a2401. --- layouts/partials/head.html | 3 +-- layouts/partials/header.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index bfabcf59..c7508c39 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -29,8 +29,7 @@ zero_results: "Leider konnten keine Ergebnisse zu [SEARCH_TERM] gefunden werden", clear_search: "Löschen" } - }); - document.getElementsByClassName("pagefind-ui__search-input")[0].autofocus=true; + }); }); diff --git a/layouts/partials/header.html b/layouts/partials/header.html index bad3accd..7a983034 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -67,7 +67,7 @@ {{ end }} {{ end }}