Skip to content

Commit

Permalink
fix(player): clear media layout children correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Nov 30, 2023
1 parent 7c1ce4d commit 67aa63c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ export class MediaLayoutElement extends Host(HTMLElement, MediaLayout) {

if (!this.query.matches) {
if (isTemplate) {
for (const el of this.children) {
if (el.localName !== 'template') el.remove();
}
this.textContent = '';
this.appendChild(root);
} else if (isHTMLElement) {
root.style.display = 'none';
}
Expand Down

0 comments on commit 67aa63c

Please sign in to comment.