Skip to content

Commit

Permalink
[core] Remove outdated TODO (#5956)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Aug 30, 2022
1 parent 656cf1a commit 4de175c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/x-date-pickers/src/CalendarPicker/CalendarPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,6 @@ export const CalendarPicker = React.forwardRef(function CalendarPicker<TDate>(
],
);

// TODO: Use same behavior as `handleDateMonthChange` to avoid selecting a date in another year.
// Needs startOfYear / endOfYear methods in adapter.
const handleDateYearChange = React.useCallback<YearPickerProps<TDate>['onChange']>(
(newDate, selectionState) => {
const startOfYear = utils.startOfYear(newDate);
Expand Down

0 comments on commit 4de175c

Please sign in to comment.