From 79421cd6f57c5c4561390fbba29115fb9ccfcbf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 11 Mar 2021 09:24:11 +0300 Subject: [PATCH] Fixed #1071 - Calendar showOtherMonths = false does not hide neighbour months --- src/components/calendar/Calendar.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/calendar/Calendar.vue b/src/components/calendar/Calendar.vue index efc9c6d84e..15ab9fbfb7 100755 --- a/src/components/calendar/Calendar.vue +++ b/src/components/calendar/Calendar.vue @@ -548,12 +548,16 @@ export default { this.overlay = null; }, onPrevButtonClick(event) { - this.navigationState = {backward: true, button: true}; - this.navBackward(event); + if(this.showOtherMonths) { + this.navigationState = {backward: true, button: true}; + this.navBackward(event); + } }, onNextButtonClick(event) { - this.navigationState = {backward: false, button: true}; - this.navForward(event); + if(this.showOtherMonths) { + this.navigationState = {backward: false, button: true}; + this.navForward(event); + } }, navBackward(event) { event.preventDefault();