primevue
primevue copied to clipboard
Calendar: showOtherMonths - does not match the description in the documentation
Describe the bug
Documentation: (versions 2 and 3)
showOtherMonths [ boolean : true ] Whether to display dates in other months (non-selectable) at the start or end of the current month...
Code:
onPrevButtonClick(event) {
if(this.showOtherMonths) {
this.navigationState = {backward: true, button: true};
this.navBackward(event);
}
},
onNextButtonClick(event) {
if(this.showOtherMonths) {
this.navigationState = {backward: false, button: true};
this.navForward(event);
}
},
Reproducer
https://codesandbox.io/s/funny-moon-i48yc4
PrimeVue version
3.12.4
Vue version
3.x
Language
ES6
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
- add
showOtherMonths="false"
Expected behavior
Dates in other months are invisible. Prev/next month buttons are enable.