From 41d8be4bbba9eb65dc92fb4209d390cfa6fc6efe Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 3 May 2019 13:00:20 +0300 Subject: [PATCH] Fixed eslint issue on Spinner --- src/components/spinner/Spinner.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/spinner/Spinner.vue b/src/components/spinner/Spinner.vue index 517097252..7e51dc8d5 100644 --- a/src/components/spinner/Spinner.vue +++ b/src/components/spinner/Spinner.vue @@ -124,16 +124,18 @@ export default { }, computed: { listeners() { + let vm = this; + return { ...this.$listeners, input: event => { this.$emit('input', event.target.value) }, focus: () => { - this.focused = true; + vm.focused = true; }, blur: event => { - this.focused = false; + vm.focused = false; const parsedValue = this.parseValue(event.target.value); this.$emit('input', parsedValue);