codeforbtv/expunge-vt

Fix gumshoe scrolling for multiple counties

Opened this issue · 1 comments

Problem: When petitions page updates with multiple counties listed, the gumshoe library throws an error and does not show the active navigation item.

**Recreate: **

  1. Add counts from 2 different counties
  2. Open the printable petitions page
  3. Click the Order by Petitions checkbox
  4. Click nav items in different counties
  5. Note that the sidenav is only active for some nav items now (probably only in the last county)

Note, my guess is that gumshoe needs to be updated. I would have thought that using reflow: true would have done the trick, but it doesn't.

The api (https://www.npmjs.com/package/gumshoejs#nested-navigation) also has a spy.setup() and spy.destroy() function that might prove useful.