Fixed #1071 - Calendar showOtherMonths = false does not hide neighbour months
parent
a0b78568db
commit
79421cd6f5
|
@ -548,12 +548,16 @@ export default {
|
||||||
this.overlay = null;
|
this.overlay = null;
|
||||||
},
|
},
|
||||||
onPrevButtonClick(event) {
|
onPrevButtonClick(event) {
|
||||||
this.navigationState = {backward: true, button: true};
|
if(this.showOtherMonths) {
|
||||||
this.navBackward(event);
|
this.navigationState = {backward: true, button: true};
|
||||||
|
this.navBackward(event);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onNextButtonClick(event) {
|
onNextButtonClick(event) {
|
||||||
this.navigationState = {backward: false, button: true};
|
if(this.showOtherMonths) {
|
||||||
this.navForward(event);
|
this.navigationState = {backward: false, button: true};
|
||||||
|
this.navForward(event);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
navBackward(event) {
|
navBackward(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
Loading…
Reference in New Issue