jungsoft / materialui-daterange-picker

A react date range picker implementation using @material-ui.
MIT License
70 stars 81 forks source link

It is possible to choose the default months to show? #6

Closed santiii5 closed 3 years ago

santiii5 commented 3 years ago

Thanks for this nice component.

Let's say I set maxDate to today's date (22, OCT, 2020). On the Date Picker, appears the month OCT 2020 on the left, and NOV 2020 on the right. The last is a completely disabled month, makes no sense to show it on the screen.

Is there a way to show the month of the maxDate on the right side of the Date Picker?

santiii5 commented 3 years ago

I solved this by adding initialDateRange, since they are only pre-selected does the trick.