From 06ea746f385ee99eba837db458d5b1248c02c8c7 Mon Sep 17 00:00:00 2001 From: richard-dds Date: Thu, 13 Jun 2019 13:33:15 -0400 Subject: [PATCH] Formatting --- js/components/options_input.js | 10 +++++----- js/components/text_input.js | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/js/components/options_input.js b/js/components/options_input.js index d69e71d2..48213378 100644 --- a/js/components/options_input.js +++ b/js/components/options_input.js @@ -20,15 +20,15 @@ export default { optional: Boolean, nullOption: { type: String, - default: '' - } + default: '', + }, }, created: function() { emitEvent('field-mount', this, { optional: this.optional, name: this.name, - valid: this._isValid(this.value) + valid: this._isValid(this.value), }) }, @@ -52,12 +52,12 @@ export default { value: e.target.value, name: this.name, watch: this.watch, - valid: this._isValid(e.target.value) + valid: this._isValid(e.target.value), }) }, _isValid: function(value) { return this.optional || value !== this.nullOption - } + }, }, } diff --git a/js/components/text_input.js b/js/components/text_input.js index 57cd8275..09367d2d 100644 --- a/js/components/text_input.js +++ b/js/components/text_input.js @@ -70,7 +70,7 @@ export default { emitEvent('field-mount', this, { optional: this.optional, name: this.name, - valid: this._isValid(this.value) + valid: this._isValid(this.value), }) }, @@ -150,6 +150,6 @@ export default { } return valid - } + }, }, }