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 () {
|
||||
const showError = (this.initialErrors && this.initialErrors.length) || false
|
||||
return {
|
||||
showError: (this.initialErrors && this.initialErrors.length) || false,
|
||||
showValid: !!this.initialValue,
|
||||
showError: showError,
|
||||
showValid: !showError && !!this.initialValue,
|
||||
validationError: this.initialErrors.join(' ')
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user