From 9648d93f89d3b475b82f6c39b401fcb38e1bcc79 Mon Sep 17 00:00:00 2001 From: KumJungMin <37934668+KumJungMin@users.noreply.github.com> Date: Fri, 28 Jun 2024 08:14:26 +0900 Subject: [PATCH] fix: change value to modelvalue in isYearSelected --- packages/primevue/src/datepicker/DatePicker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/datepicker/DatePicker.vue b/packages/primevue/src/datepicker/DatePicker.vue index e45f3f2837..b6e0fc26e2 100755 --- a/packages/primevue/src/datepicker/DatePicker.vue +++ b/packages/primevue/src/datepicker/DatePicker.vue @@ -746,7 +746,7 @@ export default { return start === year || end === year || (start < year && end > year); } else { - return value.getFullYear() === year; + return this.modelValue.getFullYear() === year; } }, isDateEquals(value, dateMeta) {