From 7dc235d58abccb86913704b327a2f533c9913063 Mon Sep 17 00:00:00 2001 From: saturnvi Date: Sun, 12 Oct 2025 21:58:50 -0500 Subject: [PATCH] Always focus search bar on load --- src/components/search.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/search.tsx b/src/components/search.tsx index aec38ac..192adad 100644 --- a/src/components/search.tsx +++ b/src/components/search.tsx @@ -1,5 +1,5 @@ import { Client, CredentialManager } from "@atcute/client"; -import { A, useLocation, useNavigate } from "@solidjs/router"; +import { A, useNavigate } from "@solidjs/router"; import { createResource, createSignal, For, onCleanup, onMount, Show } from "solid-js"; import { isTouchDevice } from "../layout"; import { appHandleLink, appList, appName, AppUrl } from "../utils/app-urls"; @@ -47,7 +47,7 @@ const Search = () => { }); onMount(() => { - if (useLocation().pathname !== "/") searchInput.focus(); + searchInput.focus(); }); const fetchTypeahead = async (input: string) => { -- 2.43.0