Skip to content

Menu: console.error when selecting a menu item with keyboard #16219

@andrey-post

Description

@andrey-post

Describe the bug

There's an unexpected error in the console when a menu item is selected with keyboard navigation (Enter key):

chrome_L7Qg6lXMsX
image

Environment

Latest Chrome on Windows

Reproducer

No response

Angular version

17.3.12

PrimeNG version

17.18.8

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.20.2

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to https://primeng.org/menu#popup
  2. Use Tab to focus the menu button, hit Enter to open the menu
  3. Select any item with keyboard Arrows, hit Enter
  4. Observe an error in the console

Expected behavior

No errors in the console.
CI should fail if console.* methods are unexpectedly called during tests execution.

Metadata

Metadata

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions