Skip to content

Commit

Permalink
Fix an issue where calendar is not properly changing months.
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Hugs committed Dec 20, 2017
1 parent b9b641a commit e67044c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Calendar/Views.tsx
Expand Up @@ -289,6 +289,7 @@ export class CalendarComponent extends BaseComponent<ICalendarHubProps, Calendar
this.calendarView = Controls.create(CalendarView, $(this.calendarDiv), {
selectedTeam: this.props.selectedTeam,
} as CalendarViewOptions);
this.calendarView.getCalendar().goTo(new Date(this.state.calendar.year, this.state.calendar.month, 1, 0, 0, 0));
this.props.onCalendarViewUpdated(this.calendarView);
}
}
Expand Down Expand Up @@ -1109,7 +1110,7 @@ export class SummaryView extends Controls.BaseControl {
this._calendar.addCallback(Calendar.FullCalendarCallbackType.eventAfterAllRender, () => {
if (!this._disposed) {
EventSourceCollection.create().then((eventSources: EventSourceCollection) => {
if (!this._rendering) {
if (!this._rendering && !this._disposed) {
this._rendering = true;
this._loadSections(eventSources);
}
Expand Down
2 changes: 1 addition & 1 deletion vss-extension.json
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "team-calendar",
"publisher": "ms-devlabs",
"version": "0.5.198",
"version": "0.5.209",
"name": "Team Calendar",
"description": "Track events important to your team, view and manage days off, quickly see when sprints start and end, and more.",
"public": true,
Expand Down

0 comments on commit e67044c

Please sign in to comment.