Skip to content

PanelMenu: Different item is focussed when item is pressed #18010

@vdbongard

Description

@vdbongard

Describe the bug

If a PanelMenu item is actively being selected, another item in the PanelMenu group is focused as well.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://primeng.org/panelmenu#template

Environment

Chrome 134, Windows 11

Angular version

19.2.0

PrimeNG version

v19

Node version

No response

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to the "Template" section of the PanelMenu docs (https://primeng.org/panelmenu#template)
  2. Open the "Mail" group
  3. Actively select the second entry of "Inbox" (hold the mouse down while clicking the item)
  4. The first item "Compose" also gets highlighted, while pressing the second item "Inbox"

Image

Expected behavior

The first item should not get highlighted while pressing the second item.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: AccessibilityIssue or pull request is related to WCAG or ARIAResolution: StaleIssue or pull request is inactivity and unfortunately it will be *closed* if there is no responseType: BugIssue contains a bug related to a specific component. Something about the component is not working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions