mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-19 07:56:02 +01:00
fix(web/input): block form submission with unclamped numbers (#360)
This commit is contained in:
@@ -15,7 +15,7 @@ const NumberField: React.FC<Props> = (props) => {
|
|||||||
name: `test.${props.index}.value`,
|
name: `test.${props.index}.value`,
|
||||||
control: props.control,
|
control: props.control,
|
||||||
defaultValue: props.row.default,
|
defaultValue: props.row.default,
|
||||||
rules: { required: props.row.required },
|
rules: { required: props.row.required, min: props.row.min, max: props.row.max },
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user