diff --git a/js/components/multi_checkbox_input.js b/js/components/multi_checkbox_input.js index 1f41637b..9f821707 100644 --- a/js/components/multi_checkbox_input.js +++ b/js/components/multi_checkbox_input.js @@ -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', {