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.
2222
2323- This method will not persist the associated input error if the input passes ` register ` 's associated rules.
2424 ``` javascript
25- register (' registerInput' , { minLength: 4 }} );
25+ register (' registerInput' , { minLength: 4 });
2626 setError (' registerInput' , { type: ' custom' , message: ' custom message' });
2727 // validation will pass as long as minLength requirement pass
2828 ```
Original file line number Diff line number Diff line change @@ -1295,7 +1295,7 @@ handleSubmit(async (data) => await fetchAPI(data))`}
12951295 input passes < code > register</ code > 's associated rules.
12961296 </ p >
12971297 < CodeArea
1298- rawData = { `register('registerInput', { minLength: 4 }} );
1298+ rawData = { `register('registerInput', { minLength: 4 });
12991299setError('registerInput', { type: 'custom', message: 'custom message' });
13001300// validation will pass as long as minLength requirement pass
13011301` }
You can’t perform that action at this time.
0 commit comments