1
0

fix: remove autocomplete for search box

This commit is contained in:
alikia2x (寒寒) 2025-11-30 02:10:52 +08:00
parent 4008fabbf1
commit 6f5d36ad33
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 56209E0CCD8420C6

View File

@ -18,6 +18,8 @@ export function SearchBox({ query = "", setQuery, onSearch, className, ...rest }
type="search"
placeholder="搜索"
value={query}
autoComplete="off"
autoCorrect="off"
onChange={(e) => setQuery(e.target.value)}
onKeyDown={(e) => {
if (e.key === "Enter") {