Skip to content

Commit

Permalink
allow logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwegner committed Jul 22, 2020
1 parent e300f66 commit 977d368
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/EntityMapMarker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,24 @@
selected: {
immediate: true,
handler() {
// eslint-disable-next-line no-console
console.log('selected', this.selected, this.placeLabel);
if (this.selected) {
this.$nextTick(() => {
// eslint-disable-next-line no-console
console.log('open', this.$refs.popup.open, this.placeLabel);
if (this.$refs.popup.open) {
this.$refs.popup.remove();
}
// eslint-disable-next-line no-console
console.log('toggle', this.placeLabel);
this.$refs.marker.togglePopup();
// eslint-disable-next-line no-console
console.log('now open?', this.$refs.popup.open, this.placeLabel);
});
} else {
this.$nextTick(() => {
// eslint-disable-next-line no-console
console.log('remove it', this.placeLabel);
this.$refs.popup.remove();
});
Expand Down

0 comments on commit 977d368

Please sign in to comment.