diff --git a/lib/web/mage/calendar.js b/lib/web/mage/calendar.js index 11186b5761efd..de4292b56e684 100644 --- a/lib/web/mage/calendar.js +++ b/lib/web/mage/calendar.js @@ -238,12 +238,14 @@ firstDay = parseInt(this._get(inst, 'firstDay'), 10); firstDay = isNaN(firstDay) ? 0 : firstDay; - for (row; row < numMonths[0]; row++) { + for (row = 0; row < numMonths[0]; row++) { this.maxRows = 4; - for (col; col < numMonths[1]; col++) { + for (col = 0; col < numMonths[1]; col++) { selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay)); + calender = ''; + if (isMultiMonth) { calender += '