From 124be5da54bba772a96fac6a6493908e50c067e2 Mon Sep 17 00:00:00 2001 From: setefocos Date: Tue, 31 Oct 2017 20:30:03 -0200 Subject: [PATCH] Added blur event. I forked this project because the input event was cycling between 2 differents inputs, one updating de value of the other, on a dead loop. The solution is this blur event: --- src/component.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/component.vue b/src/component.vue index cfb5cbc..6a5b693 100644 --- a/src/component.vue +++ b/src/component.vue @@ -2,6 +2,7 @@ @@ -68,6 +69,9 @@ export default { methods: { change (evt) { this.$emit('input', this.masked ? evt.target.value : unformat(evt.target.value, this.precision)) ++ }, ++ blur (evt) { ++ this.$emit('blur', evt) } } }