diff --git a/prisma/dev.db b/prisma/dev.db index 06cb063..71e875b 100644 Binary files a/prisma/dev.db and b/prisma/dev.db differ diff --git a/src/app/ui/tables/inputs/numberInput.tsx b/src/app/ui/tables/inputs/numberInput.tsx index 52a10a1..a0a8ac8 100644 --- a/src/app/ui/tables/inputs/numberInput.tsx +++ b/src/app/ui/tables/inputs/numberInput.tsx @@ -27,9 +27,7 @@ export default function NumberInputCell(props: CellContext) { defaultValues: { [column]: props.cell.getValue() }, - // mode: "onChange" }) - const isDirty = form.formState.isDirty function onSubmit(value: z.infer) { toast({ @@ -67,20 +65,15 @@ export default function NumberInputCell(props: CellContext) { className="w-full h-fit flex items-center justify-center" tabIndex={0} onKeyDown={e => { - if (e.code === "Enter" && !isActive) { + if (e.code === "Space" && !isActive) { setIsActive(true) } }} > {isActive ?
- { - e.preventDefault() - if (isDirty) { - console.log("SUBMIT") - form.handleSubmit(onSubmit, onErrors) - } - }} > +