File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ The function allows you to manually set one or more errors.
22
22
23
23
- This method will not persist the associated input error if the input passes ` register ` 's associated rules.
24
24
``` javascript
25
- register (' registerInput' , { minLength: 4 }} );
25
+ register (' registerInput' , { minLength: 4 });
26
26
setError (' registerInput' , { type: ' custom' , message: ' custom message' });
27
27
// validation will pass as long as minLength requirement pass
28
28
```
Original file line number Diff line number Diff line change @@ -1295,7 +1295,7 @@ handleSubmit(async (data) => await fetchAPI(data))`}
1295
1295
input passes < code > register</ code > 's associated rules.
1296
1296
</ p >
1297
1297
< CodeArea
1298
- rawData = { `register('registerInput', { minLength: 4 }} );
1298
+ rawData = { `register('registerInput', { minLength: 4 });
1299
1299
setError('registerInput', { type: 'custom', message: 'custom message' });
1300
1300
// validation will pass as long as minLength requirement pass
1301
1301
` }
You can’t perform that action at this time.
0 commit comments