From 25f432cc3166f8b9a333ec149988cbcad10f61ba Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Tue, 20 Feb 2024 07:15:59 +0000 Subject: [PATCH] fix(nc-gui): selection some dates changes the month of nearby pickers in year view --- packages/nc-gui/components/smartsheet/calendar/YearView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/calendar/YearView.vue b/packages/nc-gui/components/smartsheet/calendar/YearView.vue index 07ee443726..82003614cd 100644 --- a/packages/nc-gui/components/smartsheet/calendar/YearView.vue +++ b/packages/nc-gui/components/smartsheet/calendar/YearView.vue @@ -4,7 +4,7 @@ const { selectedDate, activeDates } = useCalendarViewStoreOrThrow() const months = computed(() => { const months = [] for (let i = 0; i < 12; i++) { - months.push(new Date(selectedDate.value.getFullYear(), i, selectedDate.value.getDate())) + months.push(new Date(selectedDate.value.getFullYear(), i, 1)) } return months }) @@ -14,7 +14,7 @@ const months = computed(() => {