focus-lock
Advanced tools
Comparing version 0.6.5 to 0.6.6
@@ -22,3 +22,3 @@ 'use strict'; | ||
var isVisible = exports.isVisible = function isVisible(node) { | ||
return !node || node === document || !isElementHidden(window.getComputedStyle(node, null)) && isVisible(node.parentNode); | ||
return !node || node === document || node.nodeType === Node.DOCUMENT_NODE || !isElementHidden(window.getComputedStyle(node, null)) && isVisible(node.parentNode); | ||
}; | ||
@@ -25,0 +25,0 @@ |
@@ -13,3 +13,3 @@ import { orderByTabIndex } from './tabOrder'; | ||
export var isVisible = function isVisible(node) { | ||
return !node || node === document || !isElementHidden(window.getComputedStyle(node, null)) && isVisible(node.parentNode); | ||
return !node || node === document || node.nodeType === Node.DOCUMENT_NODE || !isElementHidden(window.getComputedStyle(node, null)) && isVisible(node.parentNode); | ||
}; | ||
@@ -16,0 +16,0 @@ |
{ | ||
"name": "focus-lock", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"description": "DOM trap for a focus", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40784