Skip to content

Commit

Permalink
Fix bug with extension groups not being filtered
Browse files Browse the repository at this point in the history
  • Loading branch information
pikinier20 committed Dec 14, 2021
1 parent 6e58ccb commit 2ab53f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ class DocumentableList extends Component {
return isElementVisible;
}).length;

findRefs("span.groupHeader", listRef).forEach(h => {
const headerSiblings = this.state.list.getSectionListElementsRefs(h.parentNode).map(ref => this.state.list.toListElement(ref))
const isHeaderVisible = headerSiblings.filter(s => this.state.list.isElementVisible(s, filter)) != 0

this.toggleDisplayStyles(isHeaderVisible, h)
})

this.toggleDisplayStyles(isListVisible, listRef);

return isListVisible;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class MemberRenderer(signatureRenderer: SignatureRenderer)(using DocContext) ext
.functionParameters(on.argsLists)
.asInstanceOf[InlineSignatureBuilder].names.reverse
val sig = typeSig ++ Signature(Plain(s"(${on.name}: ")) ++ on.signature ++ Signature(Plain(")")) ++ argsSig
MGroup(span(sig.map(renderElement)), members.sortBy(_.name).toSeq, on.name)
MGroup(span(cls := "groupHeader")(sig.map(renderElement)), members.sortBy(_.name).toSeq, on.name)
}.toSeq

div(cls := "membersList")(renderTabs(
Expand Down

0 comments on commit 2ab53f1

Please sign in to comment.