Skip to content

Commit

Permalink
feat(calendar): set viewDate for per view #4282
Browse files Browse the repository at this point in the history
  • Loading branch information
hanastasov committed Aug 20, 2019
1 parent 083d7ea commit c44e00f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h2 class="igx-calendar__header-date">
[animationAction]="monthAction"
[locale]="locale"
[value]="value"
[viewDate]="viewDate"
[viewDate]="getViewDate(i)"
[weekStart]="weekStart"
[formatOptions]="formatOptions"
[formatViews]="formatViews"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class IgxCalendarComponent extends IgxMonthPickerBase implements AfterVie
set monthsViewNumber(val: number) {
this._monthsViewNumber = val;

for (let i = 0; i < val; i++) {
for (let i = 1; i < val; i++) {
const nextMonthDate = new Date(this.viewDate);
nextMonthDate.setMonth(nextMonthDate.getMonth() + i);
const monthView: IMonthView = {
Expand Down

0 comments on commit c44e00f

Please sign in to comment.