Component: Calendar @month-change returns 0-11 and 1-12 #2696
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
vue2-portable
Milestone
Describe the bug
Event @month-change should return the same month range when changing with arrow keys or the drop down menu.
Currently it returns different values for the same month depending on the method.
Forward and Backwards arrows: 0-11
Drop down picker: 1-12
Select May, click backward and forward creates this:
Reproducer
https://codesandbox.io/s/zealous-johnson-761y2c
PrimeVue version
3.15.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
Firefox 101, Chrome 102
Steps to reproduce the behavior
Click month forward and backward arrow, month will change from 0-11
Click on month to select month in drop down, month will change from 1-12
Expected behavior
Both methods should return the same number range
The text was updated successfully, but these errors were encountered: