If other is checked in previous save, expand text input

This commit is contained in:
Montana 2019-01-03 14:28:38 -05:00
parent ae55e1c71d
commit b1ee67a804

View File

@ -17,8 +17,10 @@ export default {
type: Array,
default: () => []
},
initialValue: Array,
otherChecked: Boolean,
initialValue: {
type: Array,
default: () => []
}
},
@ -28,10 +30,10 @@ export default {
showError: showError,
showValid: !showError && !!this.initialValue,
validationError: this.initialErrors.join(' '),
otherChecked: this.initialValue.includes("other") ? true : this.otherChecked
}
},
methods: {
onInput: function (e) {
this.$root.$emit('field-change', {