Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
technobulka opened this issue Jul 28, 2022 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@technobulka
Copy link

technobulka commented Jul 28, 2022

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 technobulka added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jul 28, 2022
@tugcekucukoglu tugcekucukoglu added this to the 3.16.2 milestone Aug 22, 2022
@tugcekucukoglu tugcekucukoglu self-assigned this Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants