DCC datepicker Max_Date_Allowed not working

Hey all,

I have recently noticed my datepicker hasn’t been correctly setting the limits on what the user can select. Max_Date_Allowed and Min_Date_Allowed both are valid settings for Dcc.Datepicker, however no matter if I set it using a date or a string, the actual limit on the datepicker doesn’t change.

Has anyone else run into this issue or know of a solution?


Solved by just reverting to previous version of Dash

I have the same issue (both min_date_allowed and max_date_allowed), and it is clearly present in first example of the user guide for datepickerrange. However, interestingly, it is not present in the singledatepicker, which can also be seen in the first example of the user guide for datepickersingle.

Related to that, neither datepickerrange or datepickersingle renders correctly. User @brolewis provided a fix in the comments of issue #549:

It looks like the css has

th, td {
    padding: 12px 15px;

which is causing the cells to grow too large. I fixed this in my project with:

td.CalendarDay {
  padding: 0;

Fixes the rendering for me at least :slight_smile:

1 Like