Skip to content

Commit

Permalink
Only scroll if we have something to scroll to
Browse files Browse the repository at this point in the history
  • Loading branch information
brianrourkeboll committed May 25, 2024
1 parent f52a6ab commit 38f3121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/fsdocs-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function scrollToAndExpandSelectedMember() {
const details = document.querySelector(`tr > td.fsdocs-member-usage:has(a[href='${location.hash}']) ~ td.fsdocs-member-xmldoc > details`);
details?.setAttribute('open', 'true');
const header = document.querySelector(`a[href='${location.hash}']`);
header.scrollIntoView({ behavior: 'instant'});
header?.scrollIntoView({ behavior: 'instant'});
}
}

Expand Down

0 comments on commit 38f3121

Please sign in to comment.