mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +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`,
|
||||
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 (
|
||||
|
||||
Reference in New Issue
Block a user