Skip to content

Commit

Permalink
fix: getComposedParent should not return slot nodes (#438)
Browse files Browse the repository at this point in the history
* fix: getComposedParent should not return slot nodes

* chore: Fix comment mistake
  • Loading branch information
WilcoFiers authored Jul 16, 2017
1 parent d92c1a1 commit 0478cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commons/dom/get-composed-parent.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dom.getComposedParent = function getComposedParent (element) {
// NOTE: If the display of a slot element isn't 'contents',
// the slot shouldn't be ignored. Chrome does not support this (yet) so,
// we'll skip this part for now.
return getComposedParent(element.assignedSlot); // content of a shadow DOM slot
return getComposedParent(element.assignedSlot); // parent of a shadow DOM slot
} else if (element.parentNode) {
var parentNode = element.parentNode;
if (parentNode.nodeType === 1) {
Expand Down

0 comments on commit 0478cbd

Please sign in to comment.