Fixed #1071 - Calendar showOtherMonths = false does not hide neighbour months

pull/1081/head
Tuğçe Küçükoğlu 2021-03-11 09:24:11 +03:00
parent a0b78568db
commit 79421cd6f5
1 changed files with 8 additions and 4 deletions

View File

@ -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();