You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
isYearSelected(year) {
if (!this.isComparable()) return false;
if (this.isMultipleSelection()) {
return this.modelValue.some((currentValue) => currentValue.getFullYear() === year);
} else if (this.isRangeSelection()) {
const start = this.modelValue[0] ? this.modelValue[0].getFullYear() : null;
const end = this.modelValue[1] ? this.modelValue[1].getFullYear() : null;
return start === year || end === year || (start < year && end > year);
} else {
return value.getFullYear() === year; // **<--- such variable 'value' doesn't exist**
}
},
Line 749 at this time.
You can see the bug even in official documentation if you select a date and then try to select a different year in the dropdown: https://primevue.org/datepicker/#inline
Describe the bug
There's a bug in this function:
Line 749 at this time.
You can see the bug even in official documentation if you select a date and then try to select a different year in the dropdown:
https://primevue.org/datepicker/#inline
Reproducer
https://stackblitz.com/edit/primevue-4-vite-issue-template-hjhpyh?file=src%2FApp.vue
PrimeVue version
4.0.0
Vue version
4.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Chrome 126
Steps to reproduce the behavior
Expected behavior
No response
The text was updated successfully, but these errors were encountered: