mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 16:30:45 +01:00
feat(Form): add validate-on error-input
Adds `error-input` option to the validate on prop to validate on input only when the field has an error. Resolves #2599
This commit is contained in:
@@ -98,6 +98,7 @@ The Form component automatically triggers validation when an input emits an `inp
|
||||
- Validation on `input` occurs **as you type**.
|
||||
- Validation on `change` occurs when you **commit to a value**.
|
||||
- Validation on `blur` happens when an input **loses focus**.
|
||||
- Validation on `error-input` happens when as you type on an input with an error.
|
||||
|
||||
You can control when validation happens this using the `validate-on` prop.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user