Skip to content

Commit

Permalink
Is node shadow root check improved
Browse files Browse the repository at this point in the history
  • Loading branch information
karaxuna committed Nov 13, 2018
1 parent e730f87 commit ad558db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/core.helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ module.exports = function() {
*/
helpers._getParentNode = function(domNode) {
var parent = domNode.parentNode;
if (parent && parent.host) {
if (parent && parent.toString() === '[object ShadowRoot]') {
parent = parent.host;
}
return parent;
Expand Down

0 comments on commit ad558db

Please sign in to comment.