Skip to content

Commit

Permalink
Merge pull request #462 from IgniteUI/didimmova/toc-filter
Browse files Browse the repository at this point in the history
refactor(template): refactor filtering logic
  • Loading branch information
simeonoff authored Apr 19, 2024
2 parents d139ee6 + a07b2df commit c604a05
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/app/services/rendering/toc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,6 @@ export class TocRenderingService extends RenderingService implements ResizableOb
let text = $(anchor).attr("title");
let parent = $(anchor).parent() as unknown as JQuery<HTMLLIElement>;
let parentNodes: JQuery<HTMLLIElement>[] = parent.parents<HTMLLIElement>("ul>li") as unknown as JQuery<HTMLLIElement>[];
let latest = parentNodes.length > 0 ? parentNodes[parentNodes.length - 1] : parent;
let header = $(latest).prevAll("li[data-is-header='true']").first();
parentNodes.push(header);
for (let i = 0; i < parentNodes.length; i++) {
let parentText;
let parentNode = $(parentNodes[i]);
Expand Down

0 comments on commit c604a05

Please sign in to comment.