Make sure initial server-side errors take precedence and invalidate fields

This commit is contained in:
Andrew Croce 2018-08-10 13:36:07 -04:00
parent 4832ecd419
commit 9d1f816002

View File

@ -72,7 +72,11 @@ export default {
//
_checkIfValid: function ({ value, invalidate = false}) {
// Validate the value
const valid = this._validate(value)
let valid = this._validate(value)
if (this.initialErrors && this.initialErrors.length) {
valid = false
}
// Show error messages or not
if (valid) {