Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@astral-ui/focus-trap

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astral-ui/focus-trap - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

4

dist/cjs/useFocusTrap.js

@@ -81,3 +81,5 @@ "use strict";

return () => {
finalFocusRef?.current?.focus();
if (finalFocusRef && finalFocusRef.current) {
finalFocusRef.current.focus();
}
};

@@ -84,0 +86,0 @@ }, [resetFocus, finalFocusRef]);

@@ -78,5 +78,7 @@ import { useCallback, useEffect } from "react";

return () => {
finalFocusRef?.current?.focus();
if (finalFocusRef && finalFocusRef.current) {
finalFocusRef.current.focus();
}
};
}, [resetFocus, finalFocusRef]);
}
{
"name": "@astral-ui/focus-trap",
"version": "0.0.1",
"version": "0.0.2",
"main": "dist/cjs/index.js",

@@ -17,3 +17,3 @@ "types": "dist/cjs/index.d.ts",

"dependencies": {
"@astral-ui/system": "^0.0.1"
"@astral-ui/system": "^0.0.2"
},

@@ -61,3 +61,3 @@ "devDependencies": {

},
"gitHead": "fcba8d3f4924994015c0591756448012fa4832d3"
"gitHead": "ca738cf864ce14106cc513eeeef68ff266d34f7e"
}
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