Skip to content

Commit 7b7f9f9

Browse files
author
Jani Giannoudis
committed
docfx: expandable inherited members fix
1 parent 6a0b502 commit 7b7f9f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docfx/templates/darkerfx/styles/toggle-theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Collapse inherited members section
22
document.addEventListener("DOMContentLoaded", function () {
33
document.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(function (heading) {
4-
if (heading.textContent.trim().replace(/\s+/g, ' ') !== "Inherited Members") return;
4+
if (!heading.textContent.trim().replace(/\s+/g, ' ').includes("Inherited Members")) return;
55

66
// find the next sibling that is a list or div (skip hr etc.)
77
var list = heading.nextElementSibling;

0 commit comments

Comments
 (0)