From a7965715d60874dd1e83cd06dedc457d6777b215 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Wed, 3 Jan 2024 11:44:53 +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 7488a4a0..3e63d3fa 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -36,7 +36,7 @@ } }); - $('#search').on('shown.bs.modal', () => { + $('#pagefind-search').on('shown.bs.modal', () => { $('.pagefind-ui__search-input input').focus(); }); });