Readonly
fieldReadonly
idReadonly
validatorComputed
errorsError messages for the field
Regardless of isErrorReported, this value is always up-to-date.
Computed
hasWhether the field has errors
Regardless of isErrorReported, this value is always up-to-date.
Whether the field value is changed
Computed
isWhether the error states has been reported.
Check this value to determine if errors should be displayed to the user.
undefined
- Validity is undetermined (not yet reported)false
- Field is validtrue
- Field is invalidWhether the field is touched.
A field becomes touched when the user interacts with it.
Finalize the intermediate change if needed (usually triggered by onBlur)
Action
markMark the field as changed
It's usually triggered by onChange
.
Default to "final"
Action
markMark the field as touched
It's usually triggered by onFocus
.
Action
reportReport the errors of the field.
It will wait until the validation is up-to-date before reporting the errors.
Action
reset
Form field that tracks input state and validation errors
Key features: