Socket
Socket
Sign inDemoInstall

rc-menu

Package Overview
Dependencies
6
Maintainers
10
Versions
277
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.12.3 to 9.12.4

es/context/IdContext.d.ts.map

5

es/Menu.js

@@ -247,2 +247,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

focus: function focus(options) {
var _childList$find;
var keys = getKeys();

@@ -254,3 +255,5 @@ var _refreshElements = refreshElements(keys, uuid),

var focusableElements = getFocusableElements(containerRef.current, elements);
var shouldFocusKey = mergedActiveKey !== null && mergedActiveKey !== void 0 ? mergedActiveKey : element2key.get(focusableElements[0]);
var shouldFocusKey = mergedActiveKey !== null && mergedActiveKey !== void 0 ? mergedActiveKey : focusableElements[0] ? element2key.get(focusableElements[0]) : (_childList$find = childList.find(function (node) {
return !node.props.disabled;
})) === null || _childList$find === void 0 ? void 0 : _childList$find.key;
var elementToFocus = key2element.get(shouldFocusKey);

@@ -257,0 +260,0 @@ if (shouldFocusKey && elementToFocus) {

@@ -254,2 +254,3 @@ "use strict";

focus: function focus(options) {
var _childList$find;
var keys = getKeys();

@@ -261,3 +262,5 @@ var _refreshElements = (0, _useAccessibility.refreshElements)(keys, uuid),

var focusableElements = (0, _useAccessibility.getFocusableElements)(containerRef.current, elements);
var shouldFocusKey = mergedActiveKey !== null && mergedActiveKey !== void 0 ? mergedActiveKey : element2key.get(focusableElements[0]);
var shouldFocusKey = mergedActiveKey !== null && mergedActiveKey !== void 0 ? mergedActiveKey : focusableElements[0] ? element2key.get(focusableElements[0]) : (_childList$find = childList.find(function (node) {
return !node.props.disabled;
})) === null || _childList$find === void 0 ? void 0 : _childList$find.key;
var elementToFocus = key2element.get(shouldFocusKey);

@@ -264,0 +267,0 @@ if (shouldFocusKey && elementToFocus) {

14

package.json
{
"name": "rc-menu",
"version": "9.12.3",
"version": "9.12.4",
"description": "menu ui component for react",

@@ -55,3 +55,3 @@ "keywords": [

"@rc-component/father-plugin": "^1.0.0",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react": "^14.0.0",

@@ -64,11 +64,13 @@ "@types/jest": "^29.5.2",

"dumi": "^2.1.17",
"eslint": "^7.0.0",
"eslint": "^8.55.0",
"eslint-plugin-jest": "^27.6.0",
"eslint-plugin-unicorn": "^49.0.0",
"father": "^4.0.0",
"gh-pages": "^5.0.0",
"gh-pages": "^6.1.0",
"less": "^4.1.3",
"np": "^8.0.4",
"np": "^9.0.0",
"rc-test": "^7.0.14",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"regenerator-runtime": "^0.13.7",
"regenerator-runtime": "^0.14.0",
"typescript": "^5.1.6"

@@ -75,0 +77,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc