Off-by-one error max_date_allowed in dcc.DatePickerRange #1406
Labels
Comments
Hey @chriddyp I'd like to make my first contribution if the issue is free |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In recent versions (can't say from exactly when), there seems to be an off-by-one error in dcc.DatePickerRange. I set
max_date_allowed = datetime.today().date()
, but in the calendar, yesterday is the maximum date allowed. I see it in my apps, and it is also present in the first example on the DatePickerRange documentation page.Example:
I've also tried connecting callbacks to State("date_range", "max_date_allowed"), and there the received max date is today's date, so it only appears in the frontend.
Tested with server under both Windows 10 1909 and Linux Mint 19.1, and in both Google Chrome 85.0 and Firefox 80.0. Versions:
The text was updated successfully, but these errors were encountered: