Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu: lack of possibility to disable menu item's highlight on hover effect #7511

Open
mikejav opened this issue Dec 16, 2024 · 0 comments
Open
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add

Comments

@mikejav
Copy link

mikejav commented Dec 16, 2024

Describe the bug

In one of the previous versions (v10.3 in my case) when I hovered over the menu item - and moved the mouse pointer outside of the Menu's panel, the item lost the hover effect.

In the latest version, it is not possible to disable it so once you hover over the item and move your cursor outside of the Menu's panel - the previously hovered item has the "highlighted" effect applied.

It is possible to disable such behavior in the Dropdown component by setting the focusOnHover=false

Reproducer

https://stackblitz.com/edit/qhjakw4h-7hq2pvpg?file=src%2FApp.jsx

System Information

System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz 
    Memory: 17.13 GB / 31.93 GB
  Binaries:
    Node: 20.10.0 - C:\Program Files\NodeJS 20.10.0\node.EXE
    npm: 10.2.3 - C:\Program Files\NodeJS 20.10.0\npm.CMD
  Browsers:
    Edge: Chromium (131.0.2903.51)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    primereact: ^10.8.5 => 10.8.5
    react: ^18.2.0 => 18.2.0

Steps to reproduce the behavior

No response

Expected behavior

It is possible to disable the described behavior

@mikejav mikejav added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 16, 2024
@melloware melloware added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

2 participants