From d09ecc67655f8fa32229599076055530e3c3b2e5 Mon Sep 17 00:00:00 2001 From: James Laidlaw <78901538+James-Laidlaw@users.noreply.github.com> Date: Wed, 22 Jun 2022 09:25:51 -0600 Subject: [PATCH 1/2] Made month-chage event consistent --- src/components/calendar/Calendar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/calendar/Calendar.vue b/src/components/calendar/Calendar.vue index d3c69b602..0e71c85d8 100755 --- a/src/components/calendar/Calendar.vue +++ b/src/components/calendar/Calendar.vue @@ -664,7 +664,7 @@ export default { 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) { From 3f5262ba829b93c75ebebcfe47c70026546ba5f2 Mon Sep 17 00:00:00 2001 From: James Laidlaw <78901538+James-Laidlaw@users.noreply.github.com> Date: Wed, 22 Jun 2022 09:32:22 -0600 Subject: [PATCH 2/2] fixed a missed emit --- src/components/calendar/Calendar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/calendar/Calendar.vue b/src/components/calendar/Calendar.vue index 0e71c85d8..604c34e6c 100755 --- a/src/components/calendar/Calendar.vue +++ b/src/components/calendar/Calendar.vue @@ -689,7 +689,7 @@ export default { this.currentMonth++; } - this.$emit('month-change', {month: this.currentMonth , year: this.currentYear}); + this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear}); } }, decrementYear() {