Skip to content

Commit bb5db24

Browse files
heath-freenomenickgros
authored andcommitted
Apply suggestions from code review
Reviewer feedback
1 parent 692bb30 commit bb5db24

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/docs/docs/advanced-customization/custom-widgets-fields.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,12 @@ The default widgets you can override are:
9494

9595
## Raising errors from within a custom widget or field
9696

97-
You can raise custom 'live validation' errors by overriding the `onChange` method to provide feedback while users are actively changing the form data. Note that these errors are temporary and are not recognized during the form validation process.
97+
You can raise custom 'live validation' errors by overriding the `onChange` method to provide feedback while users are actively changing the form data.
98+
Note that these errors are temporary and are not recognized during the form validation process.
9899

99100
:::warning
100101

101-
This method of raising errors _only_ runs during `onChange`, i.e. when the user is changing data. This will not catch errors `onSubmit`.
102+
This method of raising errors _only_ runs during `onChange`, i.e. when the user is changing data. This will not catch errors `onSubmit`, i.e when submitting the form.
102103
If you wish to add generic validation logic for your component, you should use the [`customValidate` Form prop](../api-reference/form-props.md#customvalidate).
103104

104105
:::

0 commit comments

Comments
 (0)