Merge pull request #2708 from James-Laidlaw/patch-4

Made month-chage event consistent
pull/2727/head
Tuğçe Küçükoğlu 2022-06-28 16:37:47 +03:00 committed by GitHub
commit f332d97e1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -664,7 +664,7 @@ export default {
this.currentMonth--; this.currentMonth--;
} }
this.$emit('month-change', {month: this.currentMonth, year: this.currentYear}); this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear});
} }
}, },
navForward(event) { navForward(event) {
@ -689,7 +689,7 @@ export default {
this.currentMonth++; this.currentMonth++;
} }
this.$emit('month-change', {month: this.currentMonth , year: this.currentYear}); this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear});
} }
}, },
decrementYear() { decrementYear() {