Skip to content

Commit

Permalink
fix: restore compatibility with ES2019 #7891 (#7892)
Browse files Browse the repository at this point in the history
* Restore compatibility with ES2019

* Update utils.mjs

---------

Co-authored-by: Vladimir Kharlampidi <[email protected]>
  • Loading branch information
SteveCorbett and nolimits4web authored Feb 14, 2025
1 parent 3cd5b53 commit b4fbbb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ function elementIsChildOfSlot(el, slot) {
}
elementsQueue.push(
...elementToCheck.children,
...(elementToCheck.shadowRoot?.children || []),
...(elementToCheck.assignedElements?.() || []),
...(elementToCheck.shadowRoot ? elementToCheck.shadowRoot.children : []),
...(elementToCheck.assignedElements ? elementToCheck.assignedElements() : []),
);
}
}
Expand Down

0 comments on commit b4fbbb3

Please sign in to comment.