Skip to content

Commit 307da6d

Browse files
committed
Fix "normally hidden" banner
1 parent b533004 commit 307da6d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
### Bug Fixes
1111

1212
- Fixed conversion of `NoInfer` missing type parameter reference, #2539.
13+
- Linking to a member on a page no longer incorrectly claims that
14+
"This member is normally hidden due to your filter settings" for every member.
1315

1416
### Thanks!
1517

src/lib/output/themes/default/assets/typedoc/Application.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ export class Application {
4242
// We're on a *really* slow network connection and the inline JS
4343
// has already made the page display.
4444
if (!document.body.style.display) {
45-
this.scrollToHash();
45+
this.ensureFocusedElementVisible();
4646
this.updateIndexVisibility();
47+
this.scrollToHash();
4748
}
4849
}
4950

@@ -67,15 +68,18 @@ export class Application {
6768

6869
public showPage() {
6970
if (!document.body.style.display) return;
71+
console.log("Show page");
7072
document.body.style.removeProperty("display");
71-
this.scrollToHash();
73+
this.ensureFocusedElementVisible();
7274
this.updateIndexVisibility();
75+
this.scrollToHash();
7376
}
7477

7578
public scrollToHash() {
7679
// Because we hid the entire page until the navigation loaded or we hit a timeout,
7780
// we have to manually resolve the url hash here.
7881
if (location.hash) {
82+
console.log("Scorlling");
7983
const reflAnchor = document.getElementById(
8084
location.hash.substring(1),
8185
);

0 commit comments

Comments
 (0)