diff --git a/interact.js b/interact.js index a440fc9df..4c9655353 100644 --- a/interact.js +++ b/interact.js @@ -5462,6 +5462,11 @@ return ie8MatchesSelector(element, selector, nodeList); } + // remove /deep/ from selectors if shadowDOM polyfill is used + if (window !== realWindow) { + selector = selector.replace(/\/deep\//g, ' '); + } + return element[prefixedMatchesSelector](selector); }