From 7db204b6d49e993d3634ecbd59334e2343a33857 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Wed, 3 Jan 2024 11:50:43 +0100 Subject: [PATCH] add autofocus to search field --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 3e63d3fa..24bd1373 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -37,7 +37,7 @@ }); $('#pagefind-search').on('shown.bs.modal', () => { - $('.pagefind-ui__search-input input').focus(); + $('.pagefind-ui__search-input').focus(); }); }); })(jQuery);