p-menubar: ERROR TypeError: Cannot read properties of undefined (reading 'item')
when clicking on disabled menu item
#14434
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Create p-menubar where [model] is an array of MenuItems with all items disabled. Click on any disabled item. The following exception is thrown:
The processedItem is udefined.
Environment
Window 11
Reproducer
No response
Angular version
17.0.8
PrimeNG version
17.2.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.9.0
Browser(s)
Chrome 120.0.6099.129
Steps to reproduce the behavior
Expected behavior
There should be no exception
The text was updated successfully, but these errors were encountered: