Skip to content

Commit

Permalink
Merge pull request #146 from evgeny89/dev
Browse files Browse the repository at this point in the history
fix. emit "changedYear" event
  • Loading branch information
ManukMinasyan authored Jan 10, 2022
2 parents c8849bb + 843aad4 commit a93f968
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/FunctionalCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1494,12 +1494,14 @@ export default {
let date = currentCalendar.date
currentCalendar.date = new Date(year, date.getMonth() + 1, 0)
currentCalendar.key += hUniqueID()
this.$emit('changedYear', currentCalendar.date)
})
} else {
let currentCalendar = this.listCalendars[calendarKey]
let date = currentCalendar.date
currentCalendar.date = new Date(year, date.getMonth() + 1, 0)
currentCalendar.key += hUniqueID()
this.$emit('changedYear', currentCalendar.date)
}
this.updateCalendar()
},
Expand Down

0 comments on commit a93f968

Please sign in to comment.