Skip to content

Commit 0478cbd

Browse files
authored
fix: getComposedParent should not return slot nodes (#438)
* fix: getComposedParent should not return slot nodes * chore: Fix comment mistake
1 parent d92c1a1 commit 0478cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commons/dom/get-composed-parent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dom.getComposedParent = function getComposedParent (element) {
99
// NOTE: If the display of a slot element isn't 'contents',
1010
// the slot shouldn't be ignored. Chrome does not support this (yet) so,
1111
// we'll skip this part for now.
12-
return getComposedParent(element.assignedSlot); // content of a shadow DOM slot
12+
return getComposedParent(element.assignedSlot); // parent of a shadow DOM slot
1313
} else if (element.parentNode) {
1414
var parentNode = element.parentNode;
1515
if (parentNode.nodeType === 1) {

0 commit comments

Comments
 (0)