github logaretm/vee-validate v4.5.11

latest releases: v4.14.7, v4.14.6, v4.14.5...
2 years ago

🐛 Bug Fixes

  • Ignored validation of fields during unmounting #3748 (3d49faa)

🆕 New Features

useField now allows the usage of array of functions instead of a single function to perform validation (#3725) #3726 thanks to @gbaquedano

const {
  value: value,
  errors: errors,
} = useField(
  'field',
  [
    val => (val ? true : REQUIRED_MESSAGE),
    val => ((val as string)?.length >= 3 ? true : MIN_MESSAGE)
  ],
  { bails: false }
);

Don't miss a new vee-validate release

NewReleases is sending notifications on new releases.