Skip to content

Commit

Permalink
Include full page on 'update:fromPage' and 'update:toPage' events
Browse files Browse the repository at this point in the history
Include full page on 'update:frompage' and 'update:topage' events. Closes #120.
  • Loading branch information
Nathan Reyes committed Apr 6, 2018
1 parent 2bafedb commit a3bb6db
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/CalendarPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -400,13 +400,10 @@ export default {
pageInfo.year === this.page_.year)
)
return;
// Extract just the month and year info
const monthYear = { month: pageInfo.month, year: pageInfo.year };
// Set the active page
this.page_ = this.loadPage(monthYear);
// Flag that page was moved to/updated
this.$emit('move', monthYear);
this.$emit('update:page', monthYear);
this.page_ = this.loadPage(pageInfo);
// Flag that page was updated
this.$emit('update:page', this.page_);
// Preload other pages
this.preloadPages();
},
Expand Down

0 comments on commit a3bb6db

Please sign in to comment.