Skip to content

Commit

Permalink
Fixed tabs to no longer need a wrapping div to display content (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
mumptastic committed Sep 28, 2022
1 parent d0d6062 commit 2311e1d
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ const preserveContent = (elementRef: ElementRef, templateSelector: string, targe
Array.from(element.children)
.filter((elem: Element) => elem.nodeName !== 'TEMPLATE')
.forEach((elem: Element) => {
if (template.children.length) {
template.replaceChild(elem, template.children[0]);
} else {
template.appendChild(elem);
}
template.appendChild(elem);
});
}
};
Expand Down

0 comments on commit 2311e1d

Please sign in to comment.