diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a178762bb..1124df5c3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ _The following changes are not released yet, but are on the master branch and wi * Added [`renderWeek`](http://react-day-picker.js.org/api/DayPicker`renderWeek) prop ([#497](https://github.com/gpbl/react-day-picker/issues/497) by [jenshandersson](https://github.com/jenshandersson)) * Added [`onTodayButtonClick`](http://react-day-picker.js.org/api/DayPicker#onTodayButtonClick) prop ([#529](https://github.com/gpbl/react-day-picker/issues/529)) +* Added `month` prop to [`navbarElement`]((http://react-day-picker.js.org/api/DayPicker#navbarElement)) ([#552](https://github.com/gpbl/react-day-picker/issues/552)) **Fixes** diff --git a/docs/src/pages/api/DayPicker.js b/docs/src/pages/api/DayPicker.js index 1a7bcc984b..2dde8a899d 100644 --- a/docs/src/pages/api/DayPicker.js +++ b/docs/src/pages/api/DayPicker.js @@ -341,34 +341,19 @@ export default () => (

diff --git a/src/DayPicker.js b/src/DayPicker.js index 5d92a111cd..6806b7cf59 100644 --- a/src/DayPicker.js +++ b/src/DayPicker.js @@ -453,6 +453,7 @@ export default class DayPicker extends Component { if (!canChangeMonth) return null; const props = { + month: this.state.month, classNames: this.props.classNames, className: this.props.classNames.navBar, nextMonth: this.getNextNavigableMonth(),