disable auto navigation

This commit is contained in:
Johannes Kirschbauer 2024-01-08 21:00:37 +01:00 committed by Johannes Kirschbauer
parent ea9a65474a
commit c5ebb4f20c

View File

@ -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)}