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