Make sure initial server-side errors take precedence and invalidate fields
This commit is contained in:
parent
4832ecd419
commit
9d1f816002
@ -72,7 +72,11 @@ export default {
|
|||||||
//
|
//
|
||||||
_checkIfValid: function ({ value, invalidate = false}) {
|
_checkIfValid: function ({ value, invalidate = false}) {
|
||||||
// Validate the value
|
// 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
|
// Show error messages or not
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user