diff --git a/src/input/form/fieldRows.ts b/src/input/form/fieldRows.ts index 2840347..5fc6ba6 100644 --- a/src/input/form/fieldRows.ts +++ b/src/input/form/fieldRows.ts @@ -473,7 +473,7 @@ export const NumberField = (opts: NumberOpts) => { ...(isNumber(currValue) && { initValue: String(currValue) }), placeholder: isNumber(currValue) ? String(currValue) : '42', }); - const parsed = newVal && Number.parseInt(newVal); + const parsed = newVal && Number.parseFloat(newVal); if (isNumber(parsed) && parsed !== currValue) onChange(parsed); }, isFaded: !isNumber(currValue),