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 7.2.1 to 7.2.2

2

CHANGELOG.md

@@ -1,2 +0,2 @@

## 7.2.0 (2022-11-10)
## 7.2.1 (2022-11-10)

@@ -3,0 +3,0 @@ - Added `noMouseHighlight` prop to MenuItem to allow keyboard highlighting to be tracked separately from mouse hover.

{
"name": "react-menu-list",
"version": "7.2.1",
"version": "7.2.2",
"description": "React component for menu lists and submenus",

@@ -79,4 +79,4 @@ "main": "js/index.js",

"peerDependencies": {
"react": "^16.6.0 || ^17.0.0",
"react-dom": "^16.6.0 || ^17.0.0"
"react": "^16.6.0 || ^17.0.0 || ^18.x",
"react-dom": "^16.6.0 || ^17.0.0 || ^18.x"
},

@@ -83,0 +83,0 @@ "husky": {

@@ -82,3 +82,3 @@ # react-menu-list

- `onHighlightChange`: This is an optional function which is called when the
item is highlighted or unhighlighted by the user. The callback is passed a
item is highlighted or unhighlighted by the user. A MenuItem is highlighted when the user hovers the mouse over it or uses the keyboard arrow keys to move the selection to it. The callback is passed a
boolean representing whether the item is highlighted now, and if the item is

@@ -108,2 +108,3 @@ highlighted, the second argument is an object with `byKeyboard` boolean

div element.
- `noMouseHighlight`: Optional boolean prop to make it so the MenuItem doesn't enter the highlighted state when the mouse hovers over it. In this case, the MenuItem only becomes highlighted if selection is moved to it with the arrow keys, and the application is expected to add its own styling using the CSS `:hover` selector to style the MenuItem when it's hovered by the mouse separately from the highlight styling. This allows the behavior of [Material UI's Select component](https://mui.com/material-ui/react-select/) to be emulated where the keyboard-based selection highlight is unaffected by mouse hovering.

@@ -110,0 +111,0 @@ A MenuItem has the following public methods:

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