Skip to content

Commit

Permalink
Fix autoscroll issue on new Subjects page
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyEJohnson committed Nov 15, 2023
1 parent f8b4666 commit aa35591
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/pages/subjects/new/specific/navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ function SectionLink({id, text}) {
// Handle scrolling here initially if the hash is set
React.useEffect(
() => {
if (hash.substr(1) === id) {
const decodedHash = decodeURIComponent(hash).substring(1);

if (decodedHash === id) {
goTo(id);
}
},
Expand Down

0 comments on commit aa35591

Please sign in to comment.