mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
fix(web/input): don't allow user to submit form with unclamped numbers
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user