Skip to content

Commit 575e715

Browse files
fix(core): fixed typo in utils/elementIsChildOf (#7649)
1 parent f446d51 commit 575e715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/utils.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function elementChildren(element, selector = '') {
216216
function elementIsChildOf(el, parent) {
217217
const isChild = parent.contains(el);
218218
if (!isChild && parent instanceof HTMLSlotElement) {
219-
const children = [...element.assignedElements()];
219+
const children = [...parent.assignedElements()];
220220
return children.includes(el);
221221
}
222222
return isChild;

0 commit comments

Comments
 (0)