Merge pull request #5688 from KumJungMin/issue-5687_

Fix #5687: delete month parameter on onMonthSelect
pull/5758/head
Tuğçe Küçükoğlu 2024-05-16 12:53:53 +03:00 committed by GitHub
commit 5cac0f0e3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -255,7 +255,7 @@
v-for="(m, i) of monthPickerValues" v-for="(m, i) of monthPickerValues"
:key="m" :key="m"
v-ripple v-ripple
@click="onMonthSelect($event, { month: m, index: i })" @click="onMonthSelect($event, i)"
@keydown="onMonthCellKeydown($event, { month: m, index: i })" @keydown="onMonthCellKeydown($event, { month: m, index: i })"
:class="cx('month', { month: m, index: i })" :class="cx('month', { month: m, index: i })"
v-bind=" v-bind="
@ -1672,7 +1672,7 @@ export default {
clearInterval(this.timePickerTimer); clearInterval(this.timePickerTimer);
} }
}, },
onMonthSelect(event, { month, index }) { onMonthSelect(event, index) {
if (this.view === 'month') { if (this.view === 'month') {
this.onDateSelect(event, { year: this.currentYear, month: index, day: 1, selectable: true }); this.onDateSelect(event, { year: this.currentYear, month: index, day: 1, selectable: true });
} else { } else {