Skip to content

Commit

Permalink
fix: fix open event fired multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxiong10 committed Mar 2, 2020
1 parent 006249d commit be26d2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/date-picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,13 @@ export default {
}
},
openPopup() {
if (this.popupVisible) return;
this.defaultOpen = true;
this.$emit('open');
this.$emit('update:open', true);
},
closePopup() {
if (!this.popupVisible) return;
this.defaultOpen = false;
this.$emit('close');
this.$emit('update:open', false);
Expand Down

0 comments on commit be26d2a

Please sign in to comment.