From ad558dbb0bfeef263310e5defdfca9dfa9a704b7 Mon Sep 17 00:00:00 2001 From: Kakhaber Date: Tue, 13 Nov 2018 22:58:29 +0400 Subject: [PATCH] Is node shadow root check improved --- src/core/core.helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/core.helpers.js b/src/core/core.helpers.js index 5cd1d8f6e91..ce31ae09d91 100644 --- a/src/core/core.helpers.js +++ b/src/core/core.helpers.js @@ -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;