CodeForPhilly/chime

["bug"] Hash is not updating the sidebar on initial load

pjhoberman opened this issue · 2 comments

Description:

On initial page load, the parameters set in the hash are not updating the sidebar inputs. If you edit the hash after load, the sidebar inputs do update.

Steps to reproduce:

  1. Go to a non-default hash url, like: http://0.0.0.0:8050/#population=3600003&market_share=15&current_hospitalized=69&date_first_hospitalized=2020-03-07&doubling_time=4&relative_contact_rate=30&hospitalized_rate=2.5&icu_rate=0.75&ventilated_rate=0.5&infectious_days=14&hospitalized_los=7&icu_los=9&ventilated_los=10&n_days=100&current_date=2020-04-03&max_y_axis_value=None&show_tables=True
  2. Expect the Regional pop input to be 3600003.
  3. See 3600000.

Expected behavior:

The sidebar input will update on page load to reflect the parameters set in the hash (Goal of #146).

What I got instead:

image

Likely a fix for @ecsmyth but leaving unassigned for now.

Closing - only happening on my own branch, not develop