@charlietango/use-focus-trap
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -6,2 +6,6 @@ # Change Log | ||
## [1.2.7](https://github.com/charlie-tango/hooks/compare/@charlietango/use-focus-trap@1.2.6...@charlietango/use-focus-trap@1.2.7) (2020-01-14) | ||
**Note:** Version bump only for package @charlietango/use-focus-trap | ||
## [1.2.6](https://github.com/charlie-tango/hooks/compare/@charlietango/use-focus-trap@1.2.5...@charlietango/use-focus-trap@1.2.6) (2019-11-13) | ||
@@ -8,0 +12,0 @@ |
@@ -100,2 +100,3 @@ 'use strict'; | ||
} catch (e) { | ||
// eslint-disable-next-line no-console | ||
console.warn(['You tried to return focus to', toFocus, 'but it is not in the DOM anymore'].join(' ')); | ||
@@ -102,0 +103,0 @@ } |
@@ -96,2 +96,3 @@ import { useRef, useCallback, useEffect } from 'react'; | ||
} catch (e) { | ||
// eslint-disable-next-line no-console | ||
console.warn(['You tried to return focus to', toFocus, 'but it is not in the DOM anymore'].join(' ')); | ||
@@ -98,0 +99,0 @@ } |
{ | ||
"name": "@charlietango/use-focus-trap", | ||
"description": "Trap keyboard focus inside a DOM element, to prevent the user navigating outside a modal", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"private": false, | ||
@@ -41,3 +41,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "81b33fc1196945b876e3b88afb2c883e4bc9a3f3" | ||
"gitHead": "cdbe00929b1905c43f9a203b4257ffabd2ee9472" | ||
} |
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
18183
352