NCIOCPL / drug-dictionary-app

NCI Drug Dictionary Application
2 stars 0 forks source link

App should not maintain scroll position #58

Closed kate-mashkina closed 3 years ago

kate-mashkina commented 3 years ago

Issue description

When I select a term after clicking on one of expand terms, the term page loads but maintains my scroll position so that i am looking at the footer of the definition page instead of the top of the page with the definition. This should be fixed so that we do not maintain the scroll position, and bring users to the top of the page when you click on a term. Same thing goes for loading an expand from a definition page

ESTIMATE 2

Steps to reproduce the issue

  1. Go to any definition page
  2. Scroll to the bottom and click on any letter in the expand list and view the expand results page for the selected letter
  3. You are taken to the expand page, but scrolled to the position you were in

What's the expected result?

I should be taken to the top of the definition page/top of expand, and not the footer/middle.

What's the actual result?

Right now, I am taken to the footer on definition page (mobile) and middle of expand view