From 8bc8bad4613521aba9554571368db978d69973df Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Tue, 17 Jan 2023 23:16:32 +0100 Subject: [PATCH] Focus search field --- input/Search.cshtml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/input/Search.cshtml b/input/Search.cshtml index 42bb5e5..a46a833 100644 --- a/input/Search.cshtml +++ b/input/Search.cshtml @@ -80,6 +80,10 @@ ShowInNavigation: false $("#search").val(queryParam); runSearch($("#search").val()); } + + // Focus the search box + let searchEl = document.getElementById("search"); + searchEl.focus(); }); }