Skip to content

Commit

Permalink
[docs] Fix typo onYearPicker to onYearChange (#5954)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Aug 30, 2022
1 parent e59e909 commit 656cf1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos

**MonthPicker**: The prop `onMonthChange` has been removed, you can use `onChange` instead since every change is a month change

**YearPicker**: The prop `onYearPicker` has been removed, you can use `onChange` instead since every change is a year change
**YearPicker**: The prop `onYearChange` has been removed, you can use `onChange` instead since every change is a year change

**DayPicker**: The prop `isDateDisabled` has been removed, you can now use the same validation props as for the other components (`maxDate`, `minDate`, `shouldDisableDate`, `disableFuture` and `disablePast`)

Expand Down
2 changes: 1 addition & 1 deletion docs/data/date-pickers/migration-lab/migration-lab.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ The default behavior remains the same (close after the last step on desktop but
The props of `MonthPicker`, `YearPicker` and `DayPicker` have been reworked to make them more consistent for a standalone usage.

- **MonthPicker**: The prop `onMonthChange` has been removed, you can use `onChange` instead since every change is a month change.
- **YearPicker**: The prop `onYearPicker` has been removed, you can use `onChange` instead since every change is a year change.
- **YearPicker**: The prop `onYearChange` has been removed, you can use `onChange` instead since every change is a year change.
- **DayPicker**: The prop `isDateDisabled` has been removed, you can now use the same validation props as for the other components (`maxDate`, `minDate`, `shouldDisableDate`, `disableFuture` and `disablePast`).

#### Translation
Expand Down

0 comments on commit 656cf1a

Please sign in to comment.