2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-24 15:30:37 +03:00

fix: don't change default open state when datepicker disabled (#630)

This commit is contained in:
mengxiong10
2021-08-08 15:24:27 +08:00
parent 8e1522cb4c
commit a1251ffc0f
+1 -1
View File
@@ -355,7 +355,7 @@ export default {
} }
}, },
openPopup(evt) { openPopup(evt) {
if (this.popupVisible) return; if (this.popupVisible || this.disabled) return;
this.defaultOpen = true; this.defaultOpen = true;
this.$emit('open', evt); this.$emit('open', evt);
this.$emit('update:open', true); this.$emit('update:open', true);