🐛 Fixed
- Vue's built in components will no longer be affected by the plugin and provide their parent's validator to their children. Affected components are
keep-alive
,transition
,transition-group
. This issue prevented children of said components from injecting the intended validator instances. #891 #929
✨ Enhancements
validator.reset
now resets thearia
attributes on the elements. #906validator.reset
now returns a promise when the reset process is done. #843 thanks @SirKitboard for PR #934- Date rules now accept Date values which allows custom components to emit date values. #901
- Exposed the
mixin
anddirective
properties to allow specific component installation. #778 #914 and you can use the$_veeValidate
object on your ctor to define the plugin configuration for that component.
import { directive, mixin } from 'vee-validate';
export default {
mixins: [mixin],
directives: { validate: directive },
$_veeValidate: {
// vee-validate config
}
};
🛠 Misc
- Added flow static type checking for some portions of the code base.