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

react-menu-list

Package Overview
Dependencies
Maintainers
6
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-menu-list - npm Package Compare versions

Comparing version 6.2.0 to 6.2.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## 6.2.0 (2022-11-09)
- Added `noMouseHighlight` prop to MenuItem to allow keyboard highlighting to be tracked separately from mouse hover.
## 6.1.3 (2022-08-11)

@@ -2,0 +6,0 @@

@@ -53,2 +53,3 @@ import * as React from 'react';

highlightedStyle?: Object;
noMouseHighlight?: boolean;

@@ -55,0 +56,0 @@ index?: number;

@@ -111,2 +111,6 @@ "use strict";

if (!byKeyboard && this.props.noMouseHighlight) {
return;
}
this._menuListHandle.highlight(byKeyboard);

@@ -117,2 +121,8 @@ }

value: function unhighlight() {
var byKeyboard = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
if (!byKeyboard && this.props.noMouseHighlight) {
return;
}
this._menuListHandle.unhighlight();

@@ -221,3 +231,3 @@ }

onMouseLeave: onMouseLeave || function () {
return _this3.unhighlight();
return _this3.unhighlight(false);
},

@@ -243,2 +253,3 @@ role: "menuitem",

highlightedStyle: _propTypes["default"].object,
noMouseHighlight: _propTypes["default"].bool,
index: _propTypes["default"].number,

@@ -252,2 +263,2 @@ onMouseLeave: _propTypes["default"].func,

(0, _defineProperty2["default"])(MenuItem, "contextType", _MenuList.MenuListContext);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9NZW51SXRlbS5qcyJdLCJuYW1lcyI6WyJNZW51SXRlbSIsImhpZ2hsaWdodGVkIiwiZWwiLCJfZWwiLCJwcm9wcyIsImRvbVJlZiIsInN0YXRlIiwiX21lbnVMaXN0SGFuZGxlIiwidGFrZUtleWJvYXJkIiwicmVsZWFzZUtleWJvYXJk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ICAgICAgIHJvbGU9XCJtZW51aXRlbVwiXG4gICAgICAgIGFyaWEtaGFzcG9wdXA9e3RoaXMucHJvcHNbJ2FyaWEtaGFzcG9wdXAnXX1cbiAgICAgICAgYXJpYS1leHBhbmRlZD17dGhpcy5wcm9wc1snYXJpYS1leHBhbmRlZCddfVxuICAgICAgPlxuICAgICAgICB7Y2hpbGRyZW59XG4gICAgICA8L2Rpdj5cbiAgICApO1xuICB9XG59XG4iXX0=

2

package.json
{
"name": "react-menu-list",
"version": "6.2.0",
"version": "6.2.1",
"description": "React component for menu lists and submenus",

@@ -5,0 +5,0 @@ "main": "js/index.js",

Sorry, the diff of this file is not supported yet

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