primevue icon indicating copy to clipboard operation
primevue copied to clipboard

Calendar: showOtherMonths - does not match the description in the documentation

Open technobulka opened this issue 2 years ago • 0 comments

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

  1. add showOtherMonths="false"

Expected behavior

Dates in other months are invisible. Prev/next month buttons are enable.

technobulka avatar Jul 28 '22 08:07 technobulka