From 5a98605ff19213405bf24ab78e3ebb3b9529d222 Mon Sep 17 00:00:00 2001 From: dandds Date: Thu, 8 Nov 2018 11:31:26 -0500 Subject: [PATCH] only show option input as valid if there are no errors --- js/components/options_input.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/components/options_input.js b/js/components/options_input.js index cf1583a4..a04ed230 100644 --- a/js/components/options_input.js +++ b/js/components/options_input.js @@ -12,9 +12,10 @@ export default { data: function () { + const showError = (this.initialErrors && this.initialErrors.length) || false return { - showError: (this.initialErrors && this.initialErrors.length) || false, - showValid: !!this.initialValue, + showError: showError, + showValid: !showError && !!this.initialValue, validationError: this.initialErrors.join(' ') } },