Closed jpasquers closed 5 years ago
@jpasquers given the error, I think it's best to filter getCommonParent
argument by isConnected
.
Can you see if this change also avoids the issue?
ln:126 index.js
- var n = getCommonParent(nodes);
+ var n = getCommonParent(nodes.filter(node => node.isConnected));
Yes, that also solved the error. I updated with a new commit, only change I made was using function over arrow syntax because I'm not sure about what backwards compatibility requirements there are.
Thanks, this helps my team out a lot.
<< Describe the changes >>
Closes issue: https://github.com/dequelabs/react-axe/issues/103
Reviewer checks
Required fields, to be filled out by PR reviewer(s)