Skip to content

Commit ba30103

Browse files
Merge pull request #2050 from iamfaran/fix/1945-null
[Fix]: #1945 allow null value
2 parents aa874b4 + a9ed704 commit ba30103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/packages/lowcoder/src/comps/comps/numberInputComp/numberInputComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ const CustomInputNumber = (props: RecordConstructorToView<typeof childrenMap>) =
331331
value = Number(defaultValue);
332332
}
333333
props.value.onChange(value);
334-
}, [defaultValue]);
334+
}, [defaultValue, props.allowNull]);
335335

336336
const formatFn = (value: number) =>
337337
format(value, props.allowNull, props.formatter, props.precision, props.thousandsSeparator);

0 commit comments

Comments
 (0)