grantmakers / profiles

Grantmakers.io Profiles - Summary profiles for all US-based foundations who have filed electronic IRS Form 990-PF
MIT License
1 stars 1 forks source link

Text searches prevent normal scroll flow when finished searching #76

Closed chadokruse closed 5 years ago

chadokruse commented 5 years ago

To reproduce:

  1. Start searching for long text string (e.g. city of chicago)
  2. Try to scroll after a few letters have been typed
  3. Observe inability to scroll

Options:

  1. Limit auto-scroll event to occur only if a) a user clicks on a refinement, of b) a user clicks on an list item
  2. Limit auto-scroll to occur only if a scroll is needed (e.g. leveraging existing scrollAnchor helper)

Look into adding debounce function for readyToSearchScrollPosition function or consider alternative location for that function outside search.on('render'... event