tangled
alpha
login
or
join now
retr0.id
/
pdsls
forked from
pds.ls/pdsls
1
fork
atom
atproto explorer
1
fork
atom
overview
issues
pulls
pipelines
fix search mobile autofocus
handle.invalid
5 months ago
8b04a121
fc7bd10e
verified
This commit was signed with the committer's
known signature
.
handle.invalid
SSH Key Fingerprint:
SHA256:mBrT4x0JdzLpbVR95g1hjI1aaErfC02kmLRkPXwsYCk=
+2
-2
1 changed file
expand all
collapse all
unified
split
src
components
search.tsx
+2
-2
src/components/search.tsx
···
1
1
import { Client, CredentialManager } from "@atcute/client";
2
2
-
import { A, useNavigate } from "@solidjs/router";
2
2
+
import { A, useLocation, useNavigate } from "@solidjs/router";
3
3
import { createResource, createSignal, For, onCleanup, onMount, Show } from "solid-js";
4
4
import { isTouchDevice } from "../layout";
5
5
import { appHandleLink, appList, appName, AppUrl } from "../utils/app-urls";
···
47
47
});
48
48
49
49
onMount(() => {
50
50
-
if (!isTouchDevice) searchInput.focus();
50
50
+
if (!isTouchDevice || useLocation().pathname !== "/") searchInput.focus();
51
51
});
52
52
53
53
const fetchTypeahead = async (input: string) => {