plotly / dash

Data Apps & Dashboards for Python. No JavaScript Required.
https://plotly.com/dash
MIT License
21.51k stars 2.07k forks source link

DataPickerRange does not work as expected after loading page-content via callback #1148

Open javidsch opened 4 years ago

javidsch commented 4 years ago

printscreen2

Page content is updating via callback: @app.callback(Output('page-content', 'children')

On Dash 3.6.0 It works as expected.

But on Dash 4.5.2 it works as you can see on gif-file.

The problem: If do not change start-date and/or end-date on DataPickerRange, it works as expected like on Dash 3.6.0.

But if to change start-date and end-date (updatemode='bothdates'), and after that when go to other tab and then return to the same tab - DataPickerRange does not work as expected(Does not show/detect start-date and end-date at the bottom part: div/output-container-date-picker-range). And so, Graphs are not loading... Needs to do extra actions: to change DataPickerRange dates or do other actions to force it to work.

Maybe it is related topersisted_propsand/or persistence_type. I've tried some combinations, does not work.

nicolaskruchten commented 4 years ago

I'm going to transfer this issue to the Dash repo also if that's ok :)