display valid state for option inputs that have an initial value

This commit is contained in:
dandds
2018-11-08 11:05:58 -05:00
parent 89e613d445
commit d12bed4ef3
2 changed files with 3 additions and 1 deletions

View File

@@ -7,13 +7,14 @@ export default {
type: Array,
default: () => []
},
initialValue: String,
},
data: function () {
return {
showError: (this.initialErrors && this.initialErrors.length) || false,
showValid: false,
showValid: !!this.initialValue,
validationError: this.initialErrors.join(' ')
}
},