Skip to content

Commit

Permalink
fix (update view): update view after date conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Schweizer committed Apr 19, 2018
1 parent f871ac2 commit b1891b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export class HeaderComponent<D> implements OnInit {

this._calendar._dateSelected(convertedDate);

this._calendar.ngAfterContentInit();
const view: 'month' | 'year' | 'multi-year' = this._calendar.currentView;

this._calendar._goToDateInView(convertedDate, view);
}
}

Expand Down

0 comments on commit b1891b3

Please sign in to comment.