primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.84k stars 1.24k forks source link

PanelMenu: wrong value of the hasSubmenu slot prop #6815

Closed mrDinckleman closed 4 days ago

mrDinckleman commented 6 days ago

Describe the bug

According to the documentation the item slot receives the parameter:

hasSubmenu: boolean, // Whether or not there is a submenu

But according to the code - root item receives the array of items.

Is this a bug in the code or a typo in the documentation?

Reproducer

https://stackblitz.com/edit/primevue-4-vite-issue-template-bbiwne?file=src%2FApp.vue

PrimeVue version

4.2.1

Vue version

4.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response