mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-27 13:04:44 +00:00
fix(web/input): don't allow user to submit form with unclamped numbers
This commit is contained in:
1 parent
8a0f5e946d
commit
45e9588d48
1 file changed
+1
-1
@@ -14,7 +14,7 @@ const DateField: React.FC<Props> = (props) => {
|
|||||||
const controller = useController({
|
const controller = useController({
|
||||||
name: `test.${props.index}.value`,
|
name: `test.${props.index}.value`,
|
||||||
control: props.control,
|
control: props.control,
|
||||||
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