Skip to content

Commit 78c0ff8

Browse files
Merge pull request #147 from ManukMinasyan/dev
Dev
2 parents 23ad5d3 + a93f968 commit 78c0ff8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/FunctionalCalendar.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,12 +1494,14 @@ export default {
14941494
let date = currentCalendar.date
14951495
currentCalendar.date = new Date(year, date.getMonth() + 1, 0)
14961496
currentCalendar.key += hUniqueID()
1497+
this.$emit('changedYear', currentCalendar.date)
14971498
})
14981499
} else {
14991500
let currentCalendar = this.listCalendars[calendarKey]
15001501
let date = currentCalendar.date
15011502
currentCalendar.date = new Date(year, date.getMonth() + 1, 0)
15021503
currentCalendar.key += hUniqueID()
1504+
this.$emit('changedYear', currentCalendar.date)
15031505
}
15041506
this.updateCalendar()
15051507
},

0 commit comments

Comments
 (0)