Skip to content

Commit

Permalink
fix: don't change default open state when datepicker disabled (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxiong10 committed Aug 8, 2021
1 parent 8e1522c commit a1251ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/date-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export default {
}
},
openPopup(evt) {
if (this.popupVisible) return;
if (this.popupVisible || this.disabled) return;
this.defaultOpen = true;
this.$emit('open', evt);
this.$emit('update:open', true);
Expand Down

0 comments on commit a1251ff

Please sign in to comment.