only show option input as valid if there are no errors

This commit is contained in:
dandds 2018-11-08 11:31:26 -05:00
parent d12bed4ef3
commit 5a98605ff1

View File

@ -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(' ')
}
},