Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

DateRangePicker: unable to select when initial_visible_month is not given #679

Closed
emmanuelle opened this issue Oct 11, 2019 · 0 comments · Fixed by #687
Closed

DateRangePicker: unable to select when initial_visible_month is not given #679

emmanuelle opened this issue Oct 11, 2019 · 0 comments · Fixed by #687
Assignees
Labels
dash-type-bug Something isn't working as intended size: 2
Milestone

Comments

@emmanuelle
Copy link
Contributor

With

from datetime import datetime as dt

dcc.DatePickerRange(
    id='date-picker-range',
    start_date = dt(2017, 1, 31),
    end_date = dt(2018, 3, 21),
    min_date_allowed = dt(2017, 1, 31),
    max_date_allowed = dt(2018, 3, 21),
)

the component is not responsive (nothing can be selected), whereas with

from datetime import datetime as dt

dcc.DatePickerRange(
    id='date-picker-range',
    start_date = dt(2017, 1, 31),
    end_date = dt(2018, 3, 21),
    min_date_allowed = dt(2017, 1, 31),
    max_date_allowed = dt(2018, 3, 21),
    initial_visible_month=dt(2017, 1, 31)
)

it's OK. If the start_date is given but not initial_visible_month, then initial_visible_month could default to start_date.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dash-type-bug Something isn't working as intended size: 2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants