Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b049feb

Browse files
stevematneydiasbruno
andcommitted
Update src/helpers/tabbable.js
Co-authored-by: Bruno Dias <dias.h.bruno@gmail.com>
1 parent edc4f12 commit b049feb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎src/helpers/tabbable.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ function hidesContents(element) {
3535

3636
function visible(element) {
3737
let parentElement = element;
38-
let rootNode =
39-
typeof element.getRootNode === "function"
40-
? element.getRootNode()
41-
: undefined;
38+
let rootNode = element.getRootNode && element.getRootNode();
4239
while (parentElement) {
4340
if (parentElement === document.body) break;
4441
if (rootNode && parentElement === rootNode) parentElement = rootNode.host;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /