validity
#
DescriptionThis store emits on every value change the validity of every name
group. The value is an object that contains the name
and
an Object
that contains the following properties:
valid
- If the field is validinvalid
- If the field is invalidmessage
- If the form is invalid, the message to display.errors
- An object with the keys of the current errors applied to the field (the value istrue
)
The message
will always be the first one to match, HTML5 errors first (e.g HTML required comes before HTML minlength)
then custom errors from validators
. The errors
object may contain more than one key for errors that apply.