fix(web/input): block form submission with unclamped numbers (#360)

This commit is contained in:
RIOT
2023-06-25 11:41:35 +02:00
committed by GitHub
parent 45e9588d48
commit 78e0e52656

View File

@@ -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 (