Skip to content

Commit

Permalink
doc: extensions: page_filter: append tag container to parent
Browse files Browse the repository at this point in the history
The filtertag-container was not always inserted as the last element in
the parent container.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
  • Loading branch information
gmarull authored and carlescufi committed Nov 8, 2023
1 parent f006741 commit b51688e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/_extensions/static/page_filter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function createFilterTags(dropdown, elementType, filterTags) {

var tagDiv = document.createElement("div");
tagDiv.classList.add("filtertag-container");
containerParent.insertBefore(tagDiv, containerParent.children[1]);
containerParent.append(tagDiv);

filterClasses.forEach((className) => {

Expand Down

0 comments on commit b51688e

Please sign in to comment.