From e63d2d1f6ff9cf70feb541fbdcf16b6d5a8b4704 Mon Sep 17 00:00:00 2001 From: patkane Date: Fri, 24 Mar 2017 19:15:06 -0500 Subject: [PATCH] Add support to fire an event when the address has been cleared --- src/js/Components/googleAutocomplete.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/js/Components/googleAutocomplete.vue b/src/js/Components/googleAutocomplete.vue index db51b7c..a0ec081 100644 --- a/src/js/Components/googleAutocomplete.vue +++ b/src/js/Components/googleAutocomplete.vue @@ -90,7 +90,17 @@ response: this.response, place: this.place }); - } + }, + + address() + { + if (this.address === '') + { + //fires an event to let the parent component know the address field has been cleared + Vuemit.fire('addressWasCleared'); + } + + } }, methods: