You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
dcc.DatePickerRange changes disabled_days style when selecting a start date #995
Starting dash-core-components==1.16, there is a new weird behaviour of dcc.DatePickerRange . With max_date_allowed enabled, when a user selects a start date, then, the disabled day will become unmarked (but user cannot select on it, it seems that only the CSS associated with being disabled has been removed.)
The behaviour does not show up with Dash==1.19.0 and dash-core-components==1.15
For example, the April 16th color will change if I select any start day(even though I cannot select 16th)
Here is the code to reproduce the issue:
import dash
import dash_core_components as dcc
import dash_html_components as html
app = dash.Dash(__name__)
server = app.server # expose server variable for Procfile
app.layout = html.Div(children=[
dcc.DatePickerRange(
id='date-picker',
clearable=True,
initial_visible_month="2022-04-01",
max_date_allowed="2022-04-15",
minimum_nights=0,
disabled_days = ["2022-4-06","2022-04-07","2022-04-08"]
),
])
if __name__ == '__main__':
app.run_server(debug=True)
Activity