Skip to content

Commit

Permalink
Is node shadow root check improved (chartjs#5828)
Browse files Browse the repository at this point in the history
  • Loading branch information
karaxuna authored and simonbrunel committed Nov 18, 2018
1 parent e440887 commit 5ec60f2
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 @@ -506,7 +506,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 5ec60f2

Please sign in to comment.