only show option input as valid if there are no errors
This commit is contained in:
parent
d12bed4ef3
commit
5a98605ff1
@ -12,9 +12,10 @@ export default {
|
|||||||
|
|
||||||
|
|
||||||
data: function () {
|
data: function () {
|
||||||
|
const showError = (this.initialErrors && this.initialErrors.length) || false
|
||||||
return {
|
return {
|
||||||
showError: (this.initialErrors && this.initialErrors.length) || false,
|
showError: showError,
|
||||||
showValid: !!this.initialValue,
|
showValid: !showError && !!this.initialValue,
|
||||||
validationError: this.initialErrors.join(' ')
|
validationError: this.initialErrors.join(' ')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user