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,
|
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', {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user