onefinestay / react-daterange-picker

Other
563 stars 209 forks source link

Props disableNavigation isn't propagated to <CalendarMonth> #194

Open padys opened 6 years ago

padys commented 6 years ago

There is no disableNavigation in props object for <CalendarMonth> component. https://github.com/onefinestay/react-daterange-picker/blob/148e4720dfd63ef08dd9fa77e49c96df1d44bff9/src/DateRangePicker.jsx#L526

It causes that is not possible to turn off navigation (selectors for month and year). There should be disableNavigation prop with value copied from related DateRangePicker prop.

Maybe is a good ideat to add another property disableHeader to completly remove header (labels and navigation) in <CalendarMonth> component.