Skip to content

Commit

Permalink
on search: scroll in to view (still not solved)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuess committed Jun 1, 2021
1 parent 5ee1c1e commit 27d3be6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Views/FacetedSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,8 @@ const FacetedSearch = ({
// Cancel the default action, if needed
event.preventDefault();
el.scrollIntoView();
// var elmTop = el.getBoundingClientRect().top + window.scrollY;
// window.scrollTo({top: elmTop, behavior: 'smooth',});
}
}
// track if enabled
Expand Down

0 comments on commit 27d3be6

Please sign in to comment.