plotly / dash-core-components

OBSOLETE: now part of https://github.com/plotly/dash
https://dash.plotly.com
MIT License
271 stars 146 forks source link

DatePickerSingle -- very slow performance when many disabled_days? #986

Open dsargent opened 3 years ago

dsargent commented 3 years ago

I have a DatePickerSingle with a range from Feb 1 2020 to "today". We have a daily job that runs and sometimes we save the output -- I want to disable days where we didn't save output so the user cannot choose those days. We have about 297 days in that range that need to be disabled.

When opening the date picker, it is very slow to appear (5-10 seconds) and then clicking through the months is ultra slow and laggy. If I remove the disabled_days property or set it to just one date, the control behaves fine.

Is this an unreasonable use case?

Here's a recording. You can't see me actually clicking, but here I was clicking to scroll the months as fast as it would allow, so all the lag is due to waiting for the control to update.

Peek 2021-08-24 17-13

Also I noticed the days of the week (Su Mo etc.) are misaligned with the numbers for the dates -- but I don't think this is related to the disabled_days issue.