Skip to content

Commit 5178514

Browse files
committed
udpate doc
1 parent 3ef3511 commit 5178514

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/content/docs/usecontroller/controller.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The following table contains information about the arguments for `Controller`.
2323
| `shouldUnregister` | <TypeText>boolean = false`</TypeText> | | Input will be unregistered after unmount and defaultValues will be removed as well.<br/><br/>**Note:** this prop should be avoided when using with `useFieldArray` as `unregister` function gets called after input unmount/remount and reorder. |
2424
| `disabled` | <TypeText>boolean = false`</TypeText> | | `disabled` prop will be returned from `field` prop. Controlled input will be disabled and its value will be omitted from the submission data. |
2525
| `defaultValue` | <TypeText>unknown</TypeText> | | **Important:** Can not apply `undefined` to `defaultValue` or `defaultValues` at `useForm`. <ul><li>You need to either set `defaultValue` at the field-level or `useForm`'s `defaultValues`. If you used <code>defaultValues</code> at <code>useForm</code>, skip using this prop.</li><li>If your form will invoke `reset` with default values, you will need to provide `useForm` with `defaultValues`.</li><li>Calling `onChange` with `undefined` is not valid. You should use `null` or the empty string as your default/cleared value instead.</li></ul> |
26-
| `exact` | <TypeText>boolean = false</TypeText> | | This prop will enable an exact match for input name subscriptions. |
26+
| `exact` | <TypeText>boolean = false</TypeText> | | This prop will enable an exact match for input name subscriptions, default to true. |
2727

2828
### Return
2929

src/data/api.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2853,7 +2853,7 @@ setValue('notRegisteredInput', { test: '1', test2: '2' }); // ✅ sugar syntax t
28532853
<td></td>
28542854
<td>
28552855
<p>
2856-
This prop will enable an exact match for input name subscriptions.
2856+
This prop will enable an exact match for input name subscriptions, default to true.
28572857
</p>
28582858
</td>
28592859
</tr>

0 commit comments

Comments
 (0)