Component: Menu component throws a JS exception #13568
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When all menu items in a
p-menu
are disabled, the following TypeError appears when any part of the document is clicked.Environment
Mac
Reproducer
https://stackblitz.com/edit/b8r8nz?file=src%2Fapp%2Fdemo%2Fmenu-basic-demo.ts
Angular version
16.2.1
PrimeNG version
16.0.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.1.3
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
All menu items should be able to be disabled without issue
The text was updated successfully, but these errors were encountered: