Calendar: Emit year-change event via navBackward and navForward #3811
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Describe the bug
When the user is using the Calendar component as the
YearMonth Picker, it would be helpful if the year-change emit would fire when the user navigates to previous or next year.Fix would likely be emitting the 'year-change' event in 2 places:
Reproducer
https://codesandbox.io/s/dreamy-firefly-oy6in1?file=/src/App.vue
PrimeVue version
3.21.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
In the code provided, use the 'next' and 'previous' buttons on the calendar to change year ... note that no information is logged via the @year-change emitted event
Expected behavior
@year-change should emit when using Year Picker and using the next/previous buttons
The text was updated successfully, but these errors were encountered: