ragnarlotus/vuejs-model-validator

Error with validationMessages in beforeMount

iowahc opened this issue · 2 comments

validationMessages are not applied to this.$vmv.messages when used in Component Declaration.

Code failing is in vuejs-model-validator/src/components/index.js:30
if (this.$options.validationMessages) this.vmv.setMessages(this.$options.validationMessages);
should either be
if (this.$options.validationMessages) this.$vmv.$setMessages(this.$options.validationMessages);
or
if (this.$options.validationMessages) vmv.setMessages(this.$options.validationMessages);

Could you check this please?

Sure, I will make a new release today or tomorrow top.

Thanks a lot for reporting!

Fixed, thank you!