Skip to content

Commit 5d9d073

Browse files
authored
fix(calendar): 移除钩子中多余的month
1 parent 93ec3d6 commit 5d9d073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/calendar/Calendar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ const Calendar = forwardRef<CalendarMethods, CalendarProps>((props, ref) => {
232232
});
233233
}
234234
return [yearList, monthList];
235-
}, [rangeFromTo, year, month]);
235+
}, [rangeFromTo, year]);
236236

237237
// mode为 'month' 时,构造日历列表
238238
const dateList = useMemo<CalendarCell[][]>(

0 commit comments

Comments
 (0)