From ad39b108c5075631dc0da18ae7bdcb8ce789246a Mon Sep 17 00:00:00 2001 From: Rizky Date: Tue, 25 Jun 2024 00:54:43 -0700 Subject: [PATCH] fix --- comps/form/field/type/TypeInput.tsx | 4 ++++ 1 file changed, 4 insertions(+) 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) {