React-datepicker: Custom header does not work with month picker

Created on 11 Aug 2019  路  7Comments  路  Source: Hacker0x01/react-datepicker

Expected behavior

Custom header should be rendered when showMonthYearPicker is enabled. renderCustomHeader should provide functions for month picker header.

Actual behavior

Custom header is not rendered when showMonthYearPicker is enabled.

Steps to reproduce

Use renderCustomHeader with showMonthYearPicker.

wontfix

Most helpful comment

I may have a fix in this commit

Not sure why renderCustomHeader was ignored if showMonthYearPicker. Can anyone shed some light?

All 7 comments

I may have a fix in this commit

Not sure why renderCustomHeader was ignored if showMonthYearPicker. Can anyone shed some light?

It looks like this isn't just a feature request, but a bug, because the header does not render navigation buttons if there is a custom header 馃槥

That's not a bug, that is the feature. There are functions passed for the navigation buttons, so you can implement them yourself.

@arsmth Are you planning to submit that PR? If not, I can give it a shot. It would be a breaking change though.

@tu4mo Go for it, I鈥檓 on holiday for a few weeks. Have you thought about the +/- year functions?

@tu4mo Any updates on this ?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahribori picture ahribori  路  3Comments

evolve2k picture evolve2k  路  3Comments

jjjss94 picture jjjss94  路  3Comments

sarav1234 picture sarav1234  路  3Comments

tamitutor picture tamitutor  路  3Comments