We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5783ca commit 12ccd6aCopy full SHA for 12ccd6a
src/helpers/tabbable.js
@@ -68,10 +68,9 @@ export default function findTabbableDescendants(element) {
68
const descendants = [].slice
69
.call(element.querySelectorAll("*"), 0)
70
.reduce(
71
- (finished, el) => [
72
- ...finished,
73
- ...(!el.shadowRoot ? [el] : findTabbableDescendants(el.shadowRoot))
74
- ],
+ (finished, el) => finished.concat(
+ !el.shadowRoot ? [el] : findTabbableDescendants(el.shadowRoot)
+ ),
75
[]
76
);
77
return descendants.filter(tabbable);
0 commit comments