Skip to content

Commit

Permalink
fix(core): fixed typo in utils/elementIsChildOf (#7649)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyoganesyan authored Jul 26, 2024
1 parent f446d51 commit 575e715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function elementChildren(element, selector = '') {
function elementIsChildOf(el, parent) {
const isChild = parent.contains(el);
if (!isChild && parent instanceof HTMLSlotElement) {
const children = [...element.assignedElements()];
const children = [...parent.assignedElements()];
return children.includes(el);
}
return isChild;
Expand Down

0 comments on commit 575e715

Please sign in to comment.