If other is checked in previous save, expand text input
This commit is contained in:
@@ -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', {
|
||||
|
Reference in New Issue
Block a user