Skip to content

Commit

Permalink
Add support to fire an event when the address has been cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
pkracer authored and gocanto committed Apr 2, 2017
1 parent 9c3423f commit e63d2d1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/js/Components/googleAutocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e63d2d1

Please sign in to comment.