@astral-ui/focus-trap
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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" | ||
} |
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
13311
286
+ Added@astral-ui/system@0.0.2(transitive)
- Removed@astral-ui/system@0.0.1(transitive)
Updated@astral-ui/system@^0.0.2