Skip to content

Commit

Permalink
Fix #2170
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Feb 26, 2023
1 parent 7a48a17 commit 0a52e74
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -7,7 +7,8 @@

### Bug Fixes

- Fix crash when converting `export default undefined`, #2175
- Fix crash when converting `export default undefined`, #2175.
- Fix error in console when clicking on headings in the readme, #2170.

### Thanks!

Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Expand Up @@ -14,6 +14,7 @@ export {
type Meaning,
type MeaningKeyword,
type ExternalResolveResult,
type ExternalSymbolResolver,
} from "./lib/converter";

export {
Expand Down
7 changes: 6 additions & 1 deletion src/lib/output/themes/default/assets/typedoc/Application.ts
Expand Up @@ -76,10 +76,15 @@ export class Application {
if (!reflAnchor) return;

let reflContainer = reflAnchor.parentElement!;
while (reflContainer.tagName !== "SECTION") {
while (reflContainer && reflContainer.tagName !== "SECTION") {
reflContainer = reflContainer.parentElement!;
}

if (!reflContainer) {
// This is probably a link in the readme, doesn't have a containing section
return;
}

if (reflContainer.offsetParent == null) {
this.alwaysVisibleMember = reflContainer;

Expand Down

0 comments on commit 0a52e74

Please sign in to comment.