Skip to content

Commit

Permalink
fix: delete month parameter on onMonthSelect
Browse files Browse the repository at this point in the history
  • Loading branch information
KumJungMin committed May 3, 2024
1 parent fa42242 commit e590ce7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/calendar/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
v-for="(m, i) of monthPickerValues"
:key="m"
v-ripple
@click="onMonthSelect($event, { month: m, index: i })"
@click="onMonthSelect($event, i)"
@keydown="onMonthCellKeydown($event, { month: m, index: i })"
:class="cx('month', { month: m, index: i })"
v-bind="
Expand Down Expand Up @@ -1672,7 +1672,7 @@ export default {
clearInterval(this.timePickerTimer);
}
},
onMonthSelect(event, { month, index }) {
onMonthSelect(event, index) {
if (this.view === 'month') {
this.onDateSelect(event, { year: this.currentYear, month: index, day: 1, selectable: true });
} else {
Expand Down

0 comments on commit e590ce7

Please sign in to comment.