diff --git a/comps/form/field/type/TypeInput.tsx b/comps/form/field/type/TypeInput.tsx index 99f57cc..de8ae2e 100755 --- a/comps/form/field/type/TypeInput.tsx +++ b/comps/form/field/type/TypeInput.tsx @@ -153,6 +153,10 @@ export const FieldTypeInput: FC<{ } else { fm.data[field.name] = ev.currentTarget.value; } + + if (type_field === "number") { + fm.data[field.name] = parseInt(fm.data[field.name]); + } renderOnChange(); if (prop.onChange) {