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,