dcc.DatePickerRange component: calendar does not show the current date
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 24.4k
- Forks
- 2.3k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 13
Description
Describe your context
Please provide us your environment so we can easily reproduce the issue.
dash 1.10.0
dash-core-components 1.9.0
dash-html-components 1.0.3
dash-renderer 1.3.0
dash-table 4.6.2
-
if frontend related, tell us your Browser, Version and OS
- OS: Ubuntu 16.04 LTS
- Browser: Firefox
- Version: 75.0 (64-bit)
Describe the bug
I'm trying to use dcc.DatePickerRange component in my application in order to create a date picker range to my graph.
I've added a start date and an end date based on my data frame, for example: start date = 1st May 2016 and end date = 3rd March 2020.
When I click on the start date, the calendar is opened and it shows the correct month and year (i.e. May 2016), but it does not happen when I click on the end date. When I click on the end date, the calendar shows the month and year related to the start date and not to the end date, as I've expected, in other words, the end date of the calendar shows May 2016 instead of March 2020.
Expected behavior
I believe the expected behavior would be the calendar shows the month and year related to its current value, in both start date and end date.
Another possibility could be to add a property to control this behavior, where I choose if I want to show the current date or not.
Screenshots
My application:


Thank you in advance.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the dcc.DatePickerRange component and reproduce the issue using a start date of May 2016 and an end date of March 2020. Done means opening the end-date calendar shows March 2020 instead of the start date's May 2016.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100