From 3aec9afec85ce9c8a8659f63a4ddaf7db3c9d7cd Mon Sep 17 00:00:00 2001 From: hansi90 Date: Wed, 11 Oct 2017 10:35:37 +0200 Subject: [PATCH 1/2] Cleave field fixed. --- src/fields/optional/fieldCleave.vue | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/src/fields/optional/fieldCleave.vue b/src/fields/optional/fieldCleave.vue index d472c855..2533e1d8 100644 --- a/src/fields/optional/fieldCleave.vue +++ b/src/fields/optional/fieldCleave.vue @@ -1,5 +1,5 @@ From 6a171e3f7149805ce9e242cad9f4a5abc05e5c6b Mon Sep 17 00:00:00 2001 From: hansi90 Date: Wed, 11 Oct 2017 10:53:04 +0200 Subject: [PATCH 2/2] Syntax error fix. --- src/fields/optional/fieldCleave.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fields/optional/fieldCleave.vue b/src/fields/optional/fieldCleave.vue index 2533e1d8..8fd8f704 100644 --- a/src/fields/optional/fieldCleave.vue +++ b/src/fields/optional/fieldCleave.vue @@ -43,12 +43,12 @@ export default { maxLength: 0 })); - if (this.cleave.properties && this.cleave.properties.hasOwnProperty('result')) { - this.$watch('cleave.properties.result', () => { + if (this.cleave.properties && this.cleave.properties.hasOwnProperty("result")) { + this.$watch("cleave.properties.result", () => { this.value = this.cleave.properties.result; }); } else { - this.$el.addEventListener('input', this.inputChange) + this.$el.addEventListener("input", this.inputChange); } } else { @@ -67,7 +67,7 @@ export default { beforeDestroy() { if (this.cleave) { this.cleave.destroy(); - this.$el.removeEventListener('input', this.inputChange); + this.$el.removeEventListener("input", this.inputChange); } }