From 0d78ef372e50175b25afa96152e935b917e31134 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Tue, 21 May 2019 14:30:22 +0300 Subject: [PATCH] Do not show panel when disabled --- src/components/calendar/Calendar.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/calendar/Calendar.vue b/src/components/calendar/Calendar.vue index 13799cdfe..0f4ae1284 100644 --- a/src/components/calendar/Calendar.vue +++ b/src/components/calendar/Calendar.vue @@ -618,12 +618,14 @@ export default { } }, onButtonClick() { - if (!this.overlayVisible) { - this.$refs.input.$el.focus(); - this.overlayVisible = true; - } - else { - this.overlayVisible = false; + if (this.isEnabled()) { + if (!this.overlayVisible) { + this.$refs.input.$el.focus(); + this.overlayVisible = true; + } + else { + this.overlayVisible = false; + } } }, isDateDisabled(day, month, year) {