react-focus-lock
Advanced tools
Comparing version 2.10.0 to 2.10.1
@@ -112,3 +112,3 @@ "use strict"; | ||
} | ||
if (document) { | ||
if (document && activeElement !== document.activeElement && document.querySelector('[data-focus-auto-guard]')) { | ||
var newActiveElement = document && document.activeElement; | ||
@@ -115,0 +115,0 @@ var allNodes = (0, _focusLock.expandFocusableNodes)(workingArea); |
@@ -101,3 +101,3 @@ import * as React from 'react'; | ||
} | ||
if (document) { | ||
if (document && activeElement !== document.activeElement && document.querySelector('[data-focus-auto-guard]')) { | ||
var newActiveElement = document && document.activeElement; | ||
@@ -104,0 +104,0 @@ var allNodes = expandFocusableNodes(workingArea); |
{ | ||
"name": "react-focus-lock", | ||
"version": "2.10.0", | ||
"version": "2.10.1", | ||
"description": "It is a trap! (for a focus)", | ||
@@ -104,3 +104,3 @@ "main": "dist/cjs/index.js", | ||
"@babel/runtime": "^7.0.0", | ||
"focus-lock": "^1.1.0", | ||
"focus-lock": "^1.2.0", | ||
"prop-types": "^15.6.2", | ||
@@ -107,0 +107,0 @@ "react-clientside-effect": "^1.2.6", |
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
99898
Updatedfocus-lock@^1.2.0