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