Skip to content

Commit f52a6ab

Browse files
Expand details before scrolling
1 parent 189f086 commit f52a6ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/fsdocs-theme.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ if (activeItem && mainMenu) {
1414

1515
function scrollToAndExpandSelectedMember() {
1616
if (location.hash) {
17-
const header = document.querySelector(`a[href='${location.hash}']`);
18-
header.scrollIntoView({ behavior: 'instant'});
1917
const details = document.querySelector(`tr > td.fsdocs-member-usage:has(a[href='${location.hash}']) ~ td.fsdocs-member-xmldoc > details`);
2018
details?.setAttribute('open', 'true');
19+
const header = document.querySelector(`a[href='${location.hash}']`);
20+
header.scrollIntoView({ behavior: 'instant'});
2121
}
2222
}
2323

0 commit comments

Comments
 (0)