From 65d24357dae7c4483f8604e08fb9003d86de86d2 Mon Sep 17 00:00:00 2001 From: NasgulNexus Date: Mon, 16 Mar 2026 19:17:12 +0100 Subject: [PATCH] fix: initial number input --- src/lib/core/components/Form/Controller/utils.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/core/components/Form/Controller/utils.tsx b/src/lib/core/components/Form/Controller/utils.tsx index 94f8c708..9972399d 100644 --- a/src/lib/core/components/Form/Controller/utils.tsx +++ b/src/lib/core/components/Form/Controller/utils.tsx @@ -253,6 +253,10 @@ export const getFieldInitials = < } } + if (isNumberSpec(spec)) { + value = (isNil(value) || value === '' ? undefined : Number(value)) as DirtyValue; + } + let errorMutator: {value: BaseValidateError} | typeof EMPTY_MUTATOR = get( mutatorsStore.errors, name,