Skip to content

vee-validate@4.0.0-beta.17

Pre-release
Pre-release
Compare
Choose a tag to compare

πŸ†• New Features

  • Pass the field context object as a second argument to validation functions to be consistent with global validators. This should make them more flexible.
<Field :rules="validateField" ... />
function validateField(value, ctx) {
  ctx.form; // other fields values
  ctx.field; // current field name
}