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
dont use first typeahead result by default
handle.invalid
4 months ago
0d3ad12b
37bb900a
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
···
73
const index = selectedIndex() >= 0 ? selectedIndex() : 0;
74
setShowSearch(false);
75
setInput(undefined);
76
-
setSelectedIndex(-1);
77
-
if (search()?.length) {
78
navigate(`/at://${search()![index].did}`);
79
} else if (input.startsWith("https://") || input.startsWith("http://")) {
80
const hostLength = input.indexOf("/", 8);
···
96
} else {
97
navigate(`/at://${input.replace("at://", "")}`);
98
}
0
99
};
100
101
return (
···
73
const index = selectedIndex() >= 0 ? selectedIndex() : 0;
74
setShowSearch(false);
75
setInput(undefined);
76
+
if (search()?.length && selectedIndex() !== -1) {
0
77
navigate(`/at://${search()![index].did}`);
78
} else if (input.startsWith("https://") || input.startsWith("http://")) {
79
const hostLength = input.indexOf("/", 8);
···
95
} else {
96
navigate(`/at://${input.replace("at://", "")}`);
97
}
98
+
setSelectedIndex(-1);
99
};
100
101
return (