Skip to content

Commit

Permalink
fix(Calendar): month-show event triggered multiple times (youzan#7565)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored and Fire-Dragons committed Jan 18, 2021
1 parent 263f9b1 commit 944206b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/calendar/index.js
Expand Up @@ -278,7 +278,8 @@ export default createComponent({
visibleRange[0] = i;
}

if (!months[i].visible) {
if (!months[i].showed) {
months[i].showed = true;
this.$emit('month-show', {
date: months[i].date,
title: months[i].title,
Expand Down

0 comments on commit 944206b

Please sign in to comment.