Skip to content

Commit

Permalink
feat(ui-model): check integer fields
Browse files Browse the repository at this point in the history
  • Loading branch information
skamril committed Nov 29, 2023
1 parent 86fe2ed commit da314aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function Fields() {
value: 1,
message: t("form.field.minValue", { 0: 1 }),
},
setValueAs: Math.floor,
}}
/>
<NumberFE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function Fields() {
value: 1,
message: t("form.field.minValue", { 0: 1 }),
},
setValueAs: Math.floor,
}}
/>
<NumberFE
Expand Down Expand Up @@ -118,6 +119,7 @@ function Fields() {
value: 168,
message: t("form.field.maxValue", { 0: 168 }),
},
setValueAs: Math.floor,
}}
/>
<NumberFE
Expand All @@ -133,6 +135,7 @@ function Fields() {
value: 168,
message: t("form.field.maxValue", { 0: 168 }),
},
setValueAs: Math.floor,
}}
/>
</Fieldset>
Expand Down

0 comments on commit da314aa

Please sign in to comment.