fix: remove autocomplete for search box
This commit is contained in:
parent
4008fabbf1
commit
6f5d36ad33
@ -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") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user