mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-16 11:20:36 +03:00
fix: fix open event fired multiple times
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user