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) => {