Skip to content

Commit

Permalink
feat(neuron-ui): scroll the overview view to the top on wallet switching
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Aug 12, 2019
1 parent 01ff207 commit 45997d6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/neuron-ui/src/components/Overview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,7 @@ const Overview = ({

useEffect(() => {
if (id) {
const activityListContainer = document.querySelector('.ms-DetailsList>div') as HTMLElement
if (activityListContainer) {
backToTop(activityListContainer)
}
backToTop()
}
}, [id])

Expand Down

0 comments on commit 45997d6

Please sign in to comment.