Skip to content

Commit

Permalink
fix(web/input): block form submission with unclamped numbers (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
RIOT1K authored Jun 25, 2023
1 parent 45e9588 commit 78e0e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/features/dialog/components/fields/number.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const NumberField: React.FC<Props> = (props) => {
name: `test.${props.index}.value`,
control: props.control,
defaultValue: props.row.default,
rules: { required: props.row.required },
rules: { required: props.row.required, min: props.row.min, max: props.row.max },
});

return (
Expand Down

0 comments on commit 78e0e52

Please sign in to comment.