Skip to content

Commit f322654

Browse files
committed
fix(calendar): fix not ending while in generateDateRange #7055
1 parent e5ba973 commit f322654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/calendar/calendar-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ export class IgxCalendarBase implements ControlValueAccessor {
375375
const result = [];
376376
start = this.getDateOnly(start);
377377
end = this.getDateOnly(end);
378-
while (start.getTime() !== end.getTime()) {
378+
while (start.getTime() < end.getTime()) {
379379
start = this.calendarModel.timedelta(start, 'day', 1);
380380
result.push(start);
381381
}

0 commit comments

Comments
 (0)