Skip to content

Commit

Permalink
Fix #875 - Calendar: prop showOtherMonths = false does not hide neigh…
Browse files Browse the repository at this point in the history
…bour months` dates
  • Loading branch information
tugcekucukoglu committed Mar 10, 2021
1 parent 99e34d3 commit 732d83c
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 @@ -539,12 +539,16 @@ export default {
}
},
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 732d83c

Please sign in to comment.