@rc-component/util
Advanced tools
+3
-1
@@ -92,3 +92,5 @@ import { useEffect } from 'react'; | ||
| const matchElement = focusableList.includes(lastFocusElement) ? lastFocusElement : focusableList[0]; | ||
| matchElement?.focus(); | ||
| matchElement?.focus({ | ||
| preventScroll: true | ||
| }); | ||
| } else { | ||
@@ -95,0 +97,0 @@ lastFocusElement = activeElement; |
+3
-1
@@ -102,3 +102,5 @@ "use strict"; | ||
| const matchElement = focusableList.includes(lastFocusElement) ? lastFocusElement : focusableList[0]; | ||
| matchElement?.focus(); | ||
| matchElement?.focus({ | ||
| preventScroll: true | ||
| }); | ||
| } else { | ||
@@ -105,0 +107,0 @@ lastFocusElement = activeElement; |
+1
-1
| { | ||
| "name": "@rc-component/util", | ||
| "version": "1.8.1", | ||
| "version": "1.8.2", | ||
| "description": "Common Utils For React Component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
190706
0.03%6300
0.06%