Skip to content

Commit 2fc3aef

Browse files
committed
refactor(CCalendar): update navigation
1 parent 41471f5 commit 2fc3aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/calendar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ class Calendar extends BaseComponent {
340340
${this._view === 'months' ? listOfMonths.map((row, index) => (
341341
`<tr>${row.map((month, idx) => (
342342
`<td class="calendar-cell">
343-
<div class="calendar-cell-inner month" data-coreui-month="${(index * 3) + idx}">
343+
<div class="calendar-cell-inner month" data-coreui-month="${(index * 3) + idx - addMonths}">
344344
${month}
345345
</div>
346346
</td>`

0 commit comments

Comments
 (0)