mirror of
https://github.com/nix-community/noogle.git
synced 2024-11-29 23:02:22 +03:00
disable auto navigation
This commit is contained in:
parent
ea9a65474a
commit
c5ebb4f20c
@ -80,11 +80,11 @@ export function SearchInput(props: SearchInputProps) {
|
||||
onInputChange={(e, value, reason) => {
|
||||
if (reason === "reset") {
|
||||
console.log({ value, reason });
|
||||
if (value) {
|
||||
router.push(`/f/${value.split(".").join("/")}`);
|
||||
} else {
|
||||
handleSubmit(value);
|
||||
}
|
||||
handleSubmit(value);
|
||||
// if (value) {
|
||||
// router.push(`/f/${value.split(".").join("/")}`);
|
||||
// } else {
|
||||
// }
|
||||
}
|
||||
}}
|
||||
options={data.map((e) => e.meta.title)}
|
||||
|
Loading…
Reference in New Issue
Block a user