Skip to content

Commit

Permalink
Fix "normally hidden" banner
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Apr 7, 2024
1 parent b533004 commit 307da6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
### Bug Fixes

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

### Thanks!

Expand Down
8 changes: 6 additions & 2 deletions src/lib/output/themes/default/assets/typedoc/Application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ export class Application {
// We're on a *really* slow network connection and the inline JS
// has already made the page display.
if (!document.body.style.display) {
this.scrollToHash();
this.ensureFocusedElementVisible();
this.updateIndexVisibility();
this.scrollToHash();
}
}

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

public showPage() {
if (!document.body.style.display) return;
console.log("Show page");
document.body.style.removeProperty("display");
this.scrollToHash();
this.ensureFocusedElementVisible();
this.updateIndexVisibility();
this.scrollToHash();
}

public scrollToHash() {
// Because we hid the entire page until the navigation loaded or we hit a timeout,
// we have to manually resolve the url hash here.
if (location.hash) {
console.log("Scorlling");
const reflAnchor = document.getElementById(
location.hash.substring(1),
);
Expand Down

0 comments on commit 307da6d

Please sign in to comment.