You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@rc-component/util

Package Overview
Dependencies
Maintainers
5
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rc-component/util - npm Package Compare versions

Comparing version
1.8.1
to
1.8.2
+3
-1
es/Dom/focus.js

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

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

{
"name": "@rc-component/util",
"version": "1.8.1",
"version": "1.8.2",
"description": "Common Utils For React Component",

@@ -5,0 +5,0 @@ "keywords": [