DatePicker: switching to year view when modelValue is populated #6203
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
It is not possible to switch to year picker when modelValue is populated (not empty).
Reproducer
https://stackblitz.com/edit/primevue-4-ts-vite-issue-template-djt24u?file=src%2FApp.vue,src%2Fmain.ts
PrimeVue version
4.0.4
Vue version
4.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Chrome 126.0.6478.114 (64-bit)
Steps to reproduce the behavior
ReferenceError: value is not defined
at Proxy.isYearSelected ....
Expected behavior
Year picker should be shown when clicking on year (e.g. 2024) regardless of modelValue being populated.
The text was updated successfully, but these errors were encountered: