kazupon / vue-validator

:white_check_mark: Validator component for Vue.js
MIT License
2.19k stars 431 forks source link

Empty errors array when there are errors in the form #321

Open nkostadinov opened 8 years ago

nkostadinov commented 8 years ago

vue & vue-validator version

1.0.26, 2.1.4

Reproduction Link

https://jsfiddle.net/nikolakk/Lwox0p7x/3/

What is Expected?

$validation1.errors to be populated with the field errors and displayed in the errors div

What is actually happening?

$validation1.errors is empty

jsodeman commented 7 years ago

This occurs when the error message isn't set on the validators "{ required: { rule: true, message: 'Foo is required' } }"