Socket
Socket
Sign inDemoInstall

@charlietango/use-focus-trap

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@charlietango/use-focus-trap - npm Package Compare versions

Comparing version 1.2.6 to 1.2.7

4

CHANGELOG.md

@@ -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 @@ }

4

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc