If other is checked in previous save, expand text input
This commit is contained in:
@@ -17,8 +17,10 @@ export default {
|
|||||||
type: Array,
|
type: Array,
|
||||||
default: () => []
|
default: () => []
|
||||||
},
|
},
|
||||||
initialValue: Array,
|
initialValue: {
|
||||||
otherChecked: Boolean,
|
type: Array,
|
||||||
|
default: () => []
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
@@ -28,10 +30,10 @@ export default {
|
|||||||
showError: showError,
|
showError: showError,
|
||||||
showValid: !showError && !!this.initialValue,
|
showValid: !showError && !!this.initialValue,
|
||||||
validationError: this.initialErrors.join(' '),
|
validationError: this.initialErrors.join(' '),
|
||||||
|
otherChecked: this.initialValue.includes("other") ? true : this.otherChecked
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onInput: function (e) {
|
onInput: function (e) {
|
||||||
this.$root.$emit('field-change', {
|
this.$root.$emit('field-change', {
|
||||||
|
Reference in New Issue
Block a user