Skip to content

Commit

Permalink
Fixed #1071 - Calendar showOtherMonths = false does not hide neighbou…
Browse files Browse the repository at this point in the history
…r months
  • Loading branch information
tugcekucukoglu committed Mar 11, 2021
1 parent a0b7856 commit 79421cd
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/calendar/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 79421cd

Please sign in to comment.