From 57b5d60274a4a42d35a3f7fc245c030eaecf63fa Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 3 May 2019 13:00:49 +0300 Subject: [PATCH] Fixed eslint issue on Password --- src/components/password/Password.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/password/Password.vue b/src/components/password/Password.vue index 727c29317..6fd819597 100644 --- a/src/components/password/Password.vue +++ b/src/components/password/Password.vue @@ -78,6 +78,8 @@ export default { }, computed: { listeners() { + let vm = this; + return { ...this.$listeners, input: event => this.$emit('input', event.target.value), @@ -87,8 +89,8 @@ export default { this.createPanel(); } - this.panel.style.zIndex = String(DomHandler.generateZIndex()); - this.panel.style.display = 'block'; + vm.panel.style.zIndex = String(DomHandler.generateZIndex()); + vm.panel.style.display = 'block'; setTimeout(() => { DomHandler.addClass(this.panel, 'p-input-overlay-visible'); DomHandler.removeClass(this.panel, 'p-input-overlay-hidden'); @@ -104,7 +106,7 @@ export default { DomHandler.removeClass(this.panel, 'p-input-overlay-visible'); setTimeout(() => { - this.panel.style.display = 'none'; + vm.panel.style.display = 'none'; DomHandler.removeClass(this.panel, 'p-input-overlay-hidden'); }, 150); } @@ -138,8 +140,8 @@ export default { } } - this.meter.style.backgroundPosition = meterPos; - this.info.textContent = label; + vm.meter.style.backgroundPosition = meterPos; + vm.info.textContent = label; } this.$emit('keyup', event);