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
Investigate date range validation (from less than to). It doesn't seem to be possible in Dash to have a callback update the same control that triggered the callback. Further investigation required.
Alternate solution: move logic into data wrangling for chart. If from-date is less than to-date, swap in wrangling code
The text was updated successfully, but these errors were encountered:
The reason that validation in the dropdown control was not implemented in the first place was because Dash callbacks cannot handle inputs and outputs being the same control.
This means that if I change the start year which calls some callback function... and it happens that the year is larger than the end year, that function cannot update the control that called it and reset the year back to a sane value.
Based on peer feedback:
Investigate date range validation (from less than to). It doesn't seem to be possible in Dash to have a callback update the same control that triggered the callback. Further investigation required.
Alternate solution: move logic into data wrangling for chart. If from-date is less than to-date, swap in wrangling code
The text was updated successfully, but these errors were encountered: