From cef8861ab9b2bd6ff33f01a1edfed73d5994a0a7 Mon Sep 17 00:00:00 2001 From: Montana Date: Tue, 8 Jan 2019 11:38:01 -0500 Subject: [PATCH] Fix typo on multicheckboxinput vue component --- js/components/multi_checkbox_input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/components/multi_checkbox_input.js b/js/components/multi_checkbox_input.js index 14244459..6235d4af 100644 --- a/js/components/multi_checkbox_input.js +++ b/js/components/multi_checkbox_input.js @@ -24,10 +24,10 @@ export default { data: function () { - const showError = (this.initialErrors && this.initialValue.length > 0) || false + const showError = (this.initialErrors && this.initialErrors.length) || false return { showError: showError, - showValid: !showError && !!this.initialValue, + showValid: !showError && this.initialValue.length > 0, validationError: this.initialErrors.join(' '), otherChecked: this.initialValue.includes("other") ? true : this.otherChecked, otherText: this.initialOtherValue,