[WEB-6324] fix: year selection beyond current year shows incorrect dates#6004

This commit is contained in:
Anmol Singh Bhatia
2026-02-23 14:19:33 +05:30
committed by GitHub
parent acc7959d76
commit c8e626c76d
+7 -1
View File
@@ -329,7 +329,13 @@ export function Calendar({
}
// Omit props that would override controlled navigation/header behavior
const { month: _month, onMonthChange: _onMonthChange, components: _components, ...dayPickerProps } = props;
const {
month: _month,
onMonthChange: _onMonthChange,
components: _components,
captionLayout: _captionLayout,
...dayPickerProps
} = props;
return (
<div className={cn("p-2 min-w-[280px]", className)}>