Skip to content

Commit

Permalink
fix(web/input): don't allow user to submit form with unclamped numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Jun 24, 2023
1 parent 8a0f5e9 commit 45e9588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/features/dialog/components/fields/date.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const DateField: React.FC<Props> = (props) => {
const controller = useController({
name: `test.${props.index}.value`,
control: props.control,
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 45e9588

Please sign in to comment.