Skip to content

Commit

Permalink
fix: remove leading zeros in Number field
Browse files Browse the repository at this point in the history
  • Loading branch information
benlife5 authored Nov 13, 2024
1 parent 46bd6f9 commit 5ba9399
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const DefaultField = ({
autoComplete="off"
type={field.type}
name={name}
value={typeof value === "undefined" ? "" : value}
value={typeof value === "undefined" ? "" : value.toString()}
onChange={(e) => {
if (field.type === "number") {
onChange(Number(e.currentTarget.value));
Expand Down

0 comments on commit 5ba9399

Please sign in to comment.